8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 254a72e commit 1d72bc2Copy full SHA for 1d72bc2
configuration/external_parameters.rst
@@ -453,6 +453,18 @@ Symfony provides the following env var processors:
453
'auth' => '%env(file:AUTH_FILE)%',
454
));
455
456
+``env(key:FOO:BAR)``
457
+ Retrieves key ``FOO`` from array value ``BAR``:
458
+
459
+ .. code-block:: yaml
460
461
+ parameters:
462
+ env(APP_SECRETS): "{\"database_password\": \"secret\"}"
463
+ database_password: '%env(key:database_password:json:APP_SECRETS)%'
464
465
+ .. versionadded:: 4.2
466
+ The ``key`` processor was introduced in Symfony 4.2.
467
468
It is also possible to combine any number of processors:
469
470
.. code-block:: yaml
0 commit comments