Skip to content

Commit

Permalink
Merge pull request #8963 from kenjis/appstarter-autoload-Config-ns
Browse files Browse the repository at this point in the history
chore: add `Config` namespace to appstarter autoload.psr4
  • Loading branch information
kenjis committed Jun 19, 2024
2 parents 2fae945 + eee496c commit 19d5755
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion admin/starter/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
},
"autoload": {
"psr-4": {
"App\\": "app/"
"App\\": "app/",
"Config\\": "app/Config"
},
"exclude-from-classmap": [
"**/Database/Migrations/**"
Expand Down
3 changes: 3 additions & 0 deletions user_guide_src/source/concepts/autoloader.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
----------------------

Expand Down

0 comments on commit 19d5755

Please sign in to comment.