Skip to content

Commit

Permalink
Merge pull request #9077 from kenjis/add-note-for-Registrars
Browse files Browse the repository at this point in the history
docs: add note for Registrars
  • Loading branch information
kenjis committed Jul 26, 2024
2 parents f18b8f2 + 868961d commit 75a0d9a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions user_guide_src/source/general/configuration.rst
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,10 @@ Registrars provide a means of altering a configuration at runtime across namespa
Registrars work if :ref:`auto-discovery` is enabled in :doc:`Modules </general/modules>`.
It alters configuration properties when the Config object is instantiated.

.. note:: This feature is implemented in the ``CodeIgniter\Config\BaseConfig``
class. So it will not work with a few files in the **app/Config** folder
that do not extends the class.

There are two ways to implement a Registrar: **implicit** and **explicit**.

.. note:: Values from **.env** always take priority over Registrars.
Expand Down

0 comments on commit 75a0d9a

Please sign in to comment.