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'm using a dependency called overblog/graphql-bundle. It has a bug and I want to override 1 specific file of that project: vendor/overblog/graphql-bundle/src/DependencyInjection/Compiler/TypeGeneratorPass.php.
I found a trick somewhere to define your file in autoload.files and then use exclude-from-classmap.
It worked fine.
Until I saw the ask to test 2.2.0-RC1, it broke.
Now this could be just fine, as what I'm doing is not what should be done, or it's a bug.
The text was updated successfully, but these errors were encountered:
ruudk
changed the title
[2.2.0-RC1] AutoloadGenerator.php when overriding a file using autoload.files + autoload.exclude-from-classmap
[2.2.0-RC1] AutoloadGenerator.php crashes when overriding a file using autoload.files + autoload.exclude-from-classmapDec 8, 2021
That will ensure that when the class is loaded, the one from your package takes precedence over the dependent one. The files hack just forces it to load it always which is kinda wasteful and messy (and breaks here..).
I'm using a dependency called
overblog/graphql-bundle
. It has a bug and I want to override 1 specific file of that project:vendor/overblog/graphql-bundle/src/DependencyInjection/Compiler/TypeGeneratorPass.php
.I found a trick somewhere to define your file in
autoload.files
and then useexclude-from-classmap
.It worked fine.
Until I saw the ask to test 2.2.0-RC1, it broke.
Now this could be just fine, as what I'm doing is not what should be done, or it's a bug.
Either way, I wanted to report it :)
My
composer.json
:The file that I forked:
Output of
composer diagnose
:When I run this command:
I get the following output:
And I expected this to happen:
No error
The text was updated successfully, but these errors were encountered: