Skip to content

Commit 6084084

Browse files
wouterjjaviereguiluz
authored andcommitted
Clarify not using the Config component for app configuration
1 parent 77c7d37 commit 6084084

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

best_practices.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,10 @@ Define these options as :ref:`parameters <configuration-parameters>` in the
109109
:ref:`environment <configuration-environments>` in the ``config/services_dev.yaml``
110110
and ``config/services_prod.yaml`` files.
111111

112+
Unless the application configuration is reused multiple times and needs
113+
rigid validation, do *not* use the :doc:`Config component </components/config>`
114+
to define the options.
115+
112116
Use Short and Prefixed Parameter Names
113117
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
114118

0 commit comments

Comments
 (0)