| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
PR 709 dropped the Composer files entry for flight/autoload.php and that file returned early when vendor/autoload.php existed, so Loader::autoload() never registered. path() still added directories; namespaced app classes never loaded. Upgrades must not break that.
files autoload still registers Loader::autoload() so Flight::path() works. Composer PSR-4 already loads flight\*. Reset leftover path() dirs in AutoloadTest so LoaderTest can assert the exact list.
| Back | FazBrowse Home | New Git URL |
Why
Flight::path() stopped loading namespaced app classes in 3.19.0 / 3.19.1. 3.18.3 still works. flightphp/docs hit this on app\middleware\... after bumping core.
This breaks a Flight rule: upgrades should not break the project.
Cause
PR #709 (autoload-rework):
Flight::path() still calls Loader::addDirectory(). Nothing is listening.
Fix
After merge, docs can unpin ^3.15 <3.19 once there is a 3.19.2 (or whatever you tag).