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
bug #379 More robust autoloader detection (GawainLynch)
This PR was squashed before being merged into the 1.0-dev branch (closes#379).
Discussion
----------
More robust autoloader detection
When the project, or dependent package, adds a custom autoloader, e.g. PhpStan, the added autoloader will be returned instead of the one containing the project's autoloader when `ComposerAutoloaderFinder` iterates the autoloader list leading to the mysterious error:
```
Could not determine where to locate the new class "App\Controller\DeliciousPuppyController", maybe try with a full namespace like "\My\Full\Namespace\DeliciousPuppyController"
```
Fixes#196Fixes#231Fixes#313
Related #378
Commits
-------
719979e Return objects from methods & switch fallback logic
22f5a3b Search for matching PSR-0 or PSR-4 namespaces, and default to component's autoloader
07830f9 Only return the autoloader when it contains the root namespace
0 commit comments