We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
in composer.json
Defining autoload.psr-4 with an empty namespace prefix is a bad idea for performance
Posted from SensioLabsInsight
The text was updated successfully, but these errors were encountered:
Hi,
All your /src/bundles should be in the Caravane folder And all bundles should use the namespace Caravane
For example: https://github.com/nils-van-zuijlen/caravane/blob/master/src/UserBundle/UserBundle.php#L3
namespace UserBundle; namespace Caravane\UserBundle;
After that you would have more than to update your psr4
"autoload": { "psr-4": { "": "src/" },
Would change
"autoload": { "psr-4": { "Caravane\\": "src/Caravane" },
Currently you can still do
"autoload": { "psr-4": { "CoreBundle\\": "src/CoreBundle", "ForumBundle\\": "src/ForumBundle", "ResponsabilitesBundle\\": "src/ResponsabilitesBundle", "UserBundle\\": "src/UserBundle" },
Be aware that this practice is not a best practice 😄
Sorry, something went wrong.
nils-van-zuijlen
No branches or pull requests
in composer.json
Posted from SensioLabsInsight
The text was updated successfully, but these errors were encountered: