Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 9c1f0a3

Browse filesBrowse files
committed
minor #10851 [DI] Document the trim env var processor (ogizanagi)
This PR was merged into the master branch. Discussion ---------- [DI] Document the `trim` env var processor Ref: symfony/symfony#29781 Commits ------- d36f631 [DI] Document the `trim` env var processor
2 parents 98d4a3e + d36f631 commit 9c1f0a3
Copy full SHA for 9c1f0a3

File tree

1 file changed

+8
-0
lines changed
Filter options

1 file changed

+8
-0
lines changed

‎configuration/external_parameters.rst

Copy file name to clipboardExpand all lines: configuration/external_parameters.rst
+8Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -451,6 +451,14 @@ Symfony provides the following env var processors:
451451
'auth' => '%env(file:AUTH_FILE)%',
452452
));
453453
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+
454462
``env(key:FOO:BAR)``
455463
Retrieves the value associated with the key ``FOO`` from the array whose
456464
contents are stored in the ``BAR`` env var:

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.