Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
[DebugClassLoader] expose proxyfied findFile() method #29833
As bad as it is, some third party libraries expect that at least one autoload function will be the Composer one and have behaviors that relies on the public
This is for example the case in Drupal
Fixing these bad implementations in third party libraries can take forever as things move way slower than in Symfony. This is why I think supporting this case directly in Symfony is better. It's easy and will make the
What could be done to go further in this direction would be to proxify any method implementend by wrapped class loaders.
I don't know. I want to use it. A lot of people might currently use it and have not detected this problem because the incriminated class (
But I don't want this PR to be treated as a request for Drupal. I will report the bad implementation to Drupal issues. It just gonna take forever before getting fixed.
The Debug component is here for a better DX. So it just seems logical to try our best in the
WDYT of my proposition to try to proxify every wrapped class loader methods ?