You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: user_guide_src/source/general/configuration.rst
+3-2Lines changed: 3 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -47,9 +47,10 @@ All of the configuration files that ship with CodeIgniter are namespaced with
47
47
``Config``. Using this namespace in your application will provide the best
48
48
performance since it knows exactly where to find the files.
49
49
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,
51
52
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.
Copy file name to clipboardExpand all lines: user_guide_src/source/general/modules.rst
+5-4Lines changed: 5 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -189,14 +189,15 @@ with the ``new`` command:
189
189
190
190
.. literalinclude:: modules/008.php
191
191
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.
193
193
194
194
.. 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>`.
196
196
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,
198
199
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.
0 commit comments