8000 Added key env processor to docs by bobvandevijver · Pull Request #10009 · symfony/symfony-docs · GitHub
[go: up one dir, main page]

Skip to content

Added key env processor to docs #10009

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 4, 2018
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Added key env processor to docs
  • Loading branch information
bobvandevijver committed Jul 3, 2018
commit 1d72bc25d53b0da77fe7556c492d93b32c497e76
12 changes: 12 additions & 0 deletions configuration/external_parameters.rst
Original file line number Diff line number Diff line change
Expand Up @@ -453,6 +453,18 @@ Symfony provides the following env var processors:
'auth' => '%env(file:AUTH_FILE)%',
));

``env(key:FOO:BAR)``
Retrieves key ``FOO`` from array value ``BAR``:

.. code-block:: yaml

parameters:
env(APP_SECRETS): "{\"database_password\": \"secret\"}"
database_password: '%env(key:database_password:json:APP_SECRETS)%'

.. versionadded:: 4.2
The ``key`` processor was introduced in Symfony 4.2.

It is also possible to combine any number of processors:

.. code-block:: yaml
Expand Down
0