diff --git a/bundles/best_practices.rst b/bundles/best_practices.rst index 6424d807b5a..1c3a04d2876 100644 --- a/bundles/best_practices.rst +++ b/bundles/best_practices.rst @@ -521,7 +521,9 @@ The ``composer.json`` file should include at least the following metadata: ``autoload`` This information is used by Symfony to load the classes of the bundle. It's - recommended to use the `PSR-4`_ autoload standard. + recommended to use the `PSR-4`_ autoload standard. Use the namespace as key, + and the location of the bundle's main class (relative to ``composer.json``) + as value, example: ``"autoload": { "psr-4": { "JohnSmith\\BlogBundle\\": "" } }`` In order to make it easier for developers to find your bundle, register it on `Packagist`_, the official repository for Composer packages.