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.
trim
1 parent 98d4a3e commit d36f631Copy full SHA for d36f631
configuration/external_parameters.rst
@@ -451,6 +451,14 @@ Symfony provides the following env var processors:
451
'auth' => '%env(file:AUTH_FILE)%',
452
));
453
454
+``env(trim:FOO)``
455
+ Trims the content of ``FOO`` env var, removing whitespaces from the beginning
456
+ and end of the string. This is especially useful in combination with the
457
+ ``file`` processor, as it'll remove newlines at the end of a file.
458
+
459
+ .. versionadded:: 4.3
460
+ The ``trim`` processor was introduced in Symfony 4.3.
461
462
``env(key:FOO:BAR)``
463
Retrieves the value associated with the key ``FOO`` from the array whose
464
contents are stored in the ``BAR`` env var:
0 commit comments