You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was using the autoload section of composer.json to allow a dev copy of my acme/library repository to be loaded before the copy in the vendor folder. This means that in development I can edit the library files locally and they will be loaded before the version installed in vendor. In production, it doesn't matter because only the vendor/acme/library version exists.
Now, the values in that array are reversed which means that $vendorDir . '/acme/library/src/' is loaded first and thus my locally changed library files do not get included.
This was addressed at least once awhile back in #204. It had a test and a fixture that have since been removed. I have no idea what happened in #1051 that broke this but I depend on the original behavior of root package PSR-0 autoload taking precedence over dependencies PSR-0 autoload as well.
@Seldaek is appears this was fixed since a week or two. Was this on purpose or a by-product of something else? Either way, it may need a test case to prove.
I was using the
autoload
section ofcomposer.json
to allow a dev copy of myacme/library
repository to be loaded before the copy in the vendor folder. This means that in development I can edit the library files locally and they will be loaded before the version installed in vendor. In production, it doesn't matter because only thevendor/acme/library
version exists.The composer.json section is like this:
In that file,
acme-library
is a symlink that exists at the root of the project.Prior to the fix in #1051, my generated autoload file would look like this:
Now, the values in that array are reversed which means that
$vendorDir . '/acme/library/src/'
is loaded first and thus my locally changed library files do not get included.Refs #1051, refs #1017
The text was updated successfully, but these errors were encountered: