Skip to content

Commit c7060e4

Browse files
committed
Note that env vars are not always compatible with options
There are cases where environment variables cannot be used in place of regular configuration options. This commit makes the limitation explicit. From symfony/symfony#39902
1 parent 08fa59a commit c7060e4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

configuration.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -482,6 +482,10 @@ You can reference environment variables using the special syntax
482482
``%env(ENV_VAR_NAME)%``. The values of these options are resolved at runtime
483483
(only once per request, to not impact performance).
484484

485+
Note that not all config options are compatible with environment variables. There are
486+
`cases <https://github.com/symfony/symfony/issues/39902>`_ which may require refactoring
487+
the config definition in order to work with environment variables.
488+
485489
This example shows how you could configure the database connection using an env var:
486490

487491
.. configuration-block::

0 commit comments

Comments
 (0)