Skip to content

Commit 89d6f37

Browse files
committed
docs: update existing descriptions
1 parent c48b523 commit 89d6f37

2 files changed

Lines changed: 8 additions & 6 deletions

File tree

user_guide_src/source/general/configuration.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,10 @@ All of the configuration files that ship with CodeIgniter are namespaced with
4747
``Config``. Using this namespace in your application will provide the best
4848
performance since it knows exactly where to find the files.
4949

50-
.. note:: ``config()`` finds the file in **app/Config/** when there is a class with the same shortname,
50+
.. note:: Prior to v4.4.0, ``config()`` finds the file in **app/Config/** when there
51+
is a class with the same shortname,
5152
even if you specify a fully qualified class name like ``config(\Acme\Blog\Config\Blog::class)``.
52-
This is because ``config()`` is a wrapper for the ``Factories`` class which uses ``preferApp`` by default. See :ref:`factories-loading-class` for more information.
53+
This behavior has been fixed in v4.4.0, and returns the specified instance.
5354

5455
Getting a Config Property
5556
=========================

user_guide_src/source/general/modules.rst

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -189,14 +189,15 @@ with the ``new`` command:
189189

190190
.. literalinclude:: modules/008.php
191191

192-
Config files are automatically discovered whenever using the :php:func:`config()` function that is always available.
192+
Config files are automatically discovered whenever using the :php:func:`config()` function that is always available, and you pass a short classname to it.
193193

194194
.. note:: We don't recommend you use the same short classname in modules.
195-
Modules that need to override or add to known configurations in **app/Config/** should use :ref:`registrars`.
195+
Modules that need to override or add to known configurations in **app/Config/** should use :ref:`Implicit Registrars <registrars>`.
196196

197-
.. note:: ``config()`` finds the file in **app/Config/** when there is a class with the same shortname,
197+
.. note:: Prior to v4.4.0, ``config()`` finds the file in **app/Config/** when there
198+
is a class with the same shortname,
198199
even if you specify a fully qualified class name like ``config(\Acme\Blog\Config\Blog::class)``.
199-
This is because ``config()`` is a wrapper for the ``Factories`` class which uses ``preferApp`` by default. See :ref:`factories-loading-class` for more information.
200+
This behavior has been fixed in v4.4.0, and returns the specified instance.
200201

201202
Migrations
202203
==========

0 commit comments

Comments
 (0)