-
Notifications
You must be signed in to change notification settings - Fork 790
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[3.0] better autoloading with PSR-4 #521
Comments
Better: Namespace! |
panique
added a commit
that referenced
this issue
Dec 27, 2014
Done in develop branch. Better version will come ! |
npuichigoB
added a commit
to npuichigoB/panique2
that referenced
this issue
Feb 2, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The current standard in autoloading is probably to do it via Composer's PSR-4 autoloader.
More here: https://getcomposer.org/doc/04-schema.md#autoload
The most simply implementation would be (in
composer.json
):This would always look into
src/
folder for any files. To have the autoloader look into multiple folders, the syntax would be:The text was updated successfully, but these errors were encountered: