laminas / laminas-component-installer

Composer plugin for injecting modules and configuration providers into application configuration
https://docs.laminas.dev/laminas-component-installer/
BSD 3-Clause "New" or "Revised" License
27 stars 12 forks source link

Remove composer `RootPackage` state pollution #58

Closed boesing closed 2 years ago

boesing commented 2 years ago
Q A
Bugfix yes

Description

In v3.0.0, we remove the "lazy" initialisation of the plugin. This pointed out, that we polluted the RootPackage within the Composer instance by initialising the RootPackageRepository (which internally passes itself to the RootPackage).

In https://github.com/composer/composer/commit/b195f383f2474cb0ec68bead4467079bfd136f60, composer also added clone in all commands so that the issue will be fixed for projects with v3.0.0 but we should still fix the pollution in the next patch release.

Fixes #57