Skip to content

Commit ee9ba3a

Browse files
committed
Revert "[#9507] remove csv processor, it was added in 4.1"
This reverts commit 50bddbd.
1 parent b00d9d5 commit ee9ba3a

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

configuration/external_parameters.rst

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,16 @@ Symfony provides the following env var processors:
247247
sentry:
248248
dsn: '%env(resolve:SENTRY_DSN)%'
249249
250+
``env(csv:FOO)``
251+
Decodes the content of ``FOO``, which is a CSV-encoded string:
252+
253+
.. code-block:: yaml
254+
255+
parameters:
256+
env(TRUSTED_HOSTS): "10.0.0.1, 10.0.0.2"
257+
framework:
258+
trusted_hosts: '%env(csv:TRUSTED_HOSTS)%'
259+
250260
``env(file:FOO)``
251261
Returns the contents of a file whose path is the value of the ``FOO`` env var:
252262

0 commit comments

Comments
 (0)