Skip to content

Commit 6b73dda

Browse files
melkamarjaviereguiluz
authored andcommitted
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 bfc68c1 commit 6b73dda

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
@@ -602,6 +602,10 @@ You can reference environment variables using the special syntax
602602
``%env(ENV_VAR_NAME)%``. The values of these options are resolved at runtime
603603
(only once per request, to not impact performance).
604604

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

607611
.. configuration-block::

0 commit comments

Comments
 (0)