diff --git a/admin/starter/composer.json b/admin/starter/composer.json index 0b3a889757bc..b84684d82a4f 100644 --- a/admin/starter/composer.json +++ b/admin/starter/composer.json @@ -20,7 +20,8 @@ }, "autoload": { "psr-4": { - "App\\": "app/" + "App\\": "app/", + "Config\\": "app/Config" }, "exclude-from-classmap": [ "**/Database/Migrations/**" diff --git a/user_guide_src/source/concepts/autoloader.rst b/user_guide_src/source/concepts/autoloader.rst index 2829e1240929..6391148323c8 100644 --- a/user_guide_src/source/concepts/autoloader.rst +++ b/user_guide_src/source/concepts/autoloader.rst @@ -93,6 +93,9 @@ Config files are namespaced in the ``Config`` namespace, not in ``App\Config`` a expect. This allows the core system files to always be able to locate them, even when the application namespace has changed. +.. note:: Since v4.5.3 appstarter, the ``Config\\`` namespace has been added to + **composer.json**'s ``autoload.psr-4``. + Changing App Namespace ----------------------