Skip to content

Commit 19d5755

Browse files
authored
Merge pull request #8963 from kenjis/appstarter-autoload-Config-ns
chore: add `Config` namespace to appstarter autoload.psr4
2 parents 2fae945 + eee496c commit 19d5755

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

admin/starter/composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@
2020
},
2121
"autoload": {
2222
"psr-4": {
23-
"App\\": "app/"
23+
"App\\": "app/",
24+
"Config\\": "app/Config"
2425
},
2526
"exclude-from-classmap": [
2627
"**/Database/Migrations/**"

user_guide_src/source/concepts/autoloader.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,9 @@ Config files are namespaced in the ``Config`` namespace, not in ``App\Config`` a
9393
expect. This allows the core system files to always be able to locate them, even when the application
9494
namespace has changed.
9595

96+
.. note:: Since v4.5.3 appstarter, the ``Config\\`` namespace has been added to
97+
**composer.json**'s ``autoload.psr-4``.
98+
9699
Changing App Namespace
97100
----------------------
98101

0 commit comments

Comments
 (0)