Skip to content

Commit

Permalink
docs: add note for Registrars
Browse files Browse the repository at this point in the history
  • Loading branch information
kenjis committed Jul 26, 2024
1 parent 3e88f85 commit 868961d
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 868961d

Please sign in to comment.