Skip to content

Commit 9c1f0a3

Browse 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

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

configuration/external_parameters.rst

Lines 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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy