We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 041c879 commit 970c26dCopy full SHA for 970c26d
bundles/best_practices.rst
@@ -517,7 +517,9 @@ The ``composer.json`` file should include at least the following metadata:
517
518
``autoload``
519
This information is used by Symfony to load the classes of the bundle. It's
520
- recommended to use the `PSR-4`_ autoload standard.
+ recommended to use the `PSR-4`_ autoload standard. Use the namespace as key,
521
+ and the location of the bundle's main class (relative to ``composer.json``)
522
+ as value, example: ``"autoload": { "psr-4": { "JohnSmith\\BlogBundle\\": "" } }``
523
524
In order to make it easier for developers to find your bundle, register it on
525
`Packagist`_, the official repository for Composer packages.
0 commit comments