Skip to content

Commit ae6db97

Browse files
committed
docs: add about config() preferApp and Registrars
1 parent 10496ff commit ae6db97

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

user_guide_src/source/general/modules.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,11 @@ with the ``new`` command::
191191

192192
Config files are automatically discovered whenever using the **config()** function that is always available.
193193

194+
.. note:: **config()** finds the file in **app/Config/** when there is a class with the same shortname,
195+
even if you specify a full qualified class name like ``config(\Acme\Blog\Config\Blog::class)``.
196+
197+
.. note:: Modules that need to override or add to known configurations in **app/Config/** should use :ref:`registrars`.
198+
194199
Migrations
195200
==========
196201

0 commit comments

Comments
 (0)