Skip to content

Commit 7d055f4

Browse files
committed
minor #20012 [Best Practices] Clarify not using the Config component for app configuration (wouterj)
This PR was submitted for the 7.1 branch but it was merged into the 5.4 branch instead. Discussion ---------- [Best Practices] Clarify not using the Config component for app configuration Fix #20011 Commits ------- 6084084 Clarify not using the Config component for app configuration
2 parents 77c7d37 + 6084084 commit 7d055f4

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)