Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion service_container/expression_language.rst
Original file line number Diff line number Diff line change
Expand Up @@ -73,12 +73,14 @@ to another service: ``App\Mailer``. One way to do this is with an expression:

To learn more about the expression language syntax, see :doc:`/components/expression_language/syntax`.

In this context, you have access to 2 functions:
In this context, you have access to 3 functions:

``service``
Returns a given service (see the example above).
``parameter``
Returns a specific parameter value (syntax is like ``service``).
``env``
Returns the value of an env variable.

You also have access to the :class:`Symfony\\Component\\DependencyInjection\\Container`
via a ``container`` variable. Here's another example:
Expand Down