From ec0dcb87d919e2d3645fe386c690fc9e3fb7b2cf Mon Sep 17 00:00:00 2001 From: Florent Blaison Date: Wed, 5 Jun 2019 13:03:44 +0200 Subject: [PATCH 1/2] Add documentation for the split env processor --- configuration/env_var_processors.rst | 3 +++ 1 file changed, 3 insertions(+) diff --git a/configuration/env_var_processors.rst b/configuration/env_var_processors.rst index 1c4eeb758df..b3005b058cc 100644 --- a/configuration/env_var_processors.rst +++ b/configuration/env_var_processors.rst @@ -380,6 +380,9 @@ Symfony provides the following env var processors: The ``trim`` processor was introduced in Symfony 4.3. +``env(split:FOO,BAR)`` + Split the content of ``FOO,BAR`` env var, retrieving a php array. + ``env(key:FOO:BAR)`` Retrieves the value associated with the key ``FOO`` from the array whose contents are stored in the ``BAR`` env var: From 281d3f2d1689cdc7ed7df73463fb7a162b940613 Mon Sep 17 00:00:00 2001 From: Florent Blaison Date: Wed, 26 Jun 2019 16:37:48 +0200 Subject: [PATCH 2/2] Update env_var_processors.rst --- configuration/env_var_processors.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configuration/env_var_processors.rst b/configuration/env_var_processors.rst index b3005b058cc..f80c2c61dd8 100644 --- a/configuration/env_var_processors.rst +++ b/configuration/env_var_processors.rst @@ -380,8 +380,8 @@ Symfony provides the following env var processors: The ``trim`` processor was introduced in Symfony 4.3. -``env(split:FOO,BAR)`` - Split the content of ``FOO,BAR`` env var, retrieving a php array. +``env(split:FOO)`` + Split the content by ``,`` of ``FOO`` env var, retrieving a php array. ``env(key:FOO:BAR)`` Retrieves the value associated with the key ``FOO`` from the array whose