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.
1 parent 9c761ac commit bcbf1f3Copy full SHA for bcbf1f3
service_container/expression_language.rst
@@ -73,12 +73,14 @@ to another service: ``App\Mailer``. One way to do this is with an expression:
73
74
To learn more about the expression language syntax, see :doc:`/components/expression_language/syntax`.
75
76
-In this context, you have access to 2 functions:
+In this context, you have access to 3 functions:
77
78
``service``
79
Returns a given service (see the example above).
80
``parameter``
81
Returns a specific parameter value (syntax is like ``service``).
82
+``env``
83
+ Returns the value of an env variable.
84
85
You also have access to the :class:`Symfony\\Component\\DependencyInjection\\Container`
86
via a ``container`` variable. Here's another example:
0 commit comments