Skip to content

Commit 1d72bc2

Browse files
Added key env processor to docs
1 parent 254a72e commit 1d72bc2

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

configuration/external_parameters.rst

+12
Original file line numberDiff line numberDiff line change
@@ -453,6 +453,18 @@ Symfony provides the following env var processors:
453453
'auth' => '%env(file:AUTH_FILE)%',
454454
));
455455
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+
456468
It is also possible to combine any number of processors:
457469

458470
.. code-block:: yaml

0 commit comments

Comments
 (0)