diff --git a/components/expression_language/syntax.rst b/components/expression_language/syntax.rst index 4ba134fbf38..ac3925f02c4 100644 --- a/components/expression_language/syntax.rst +++ b/components/expression_language/syntax.rst @@ -308,3 +308,15 @@ Ternary Operators * ``foo ? 'yes' : 'no'`` * ``foo ?: 'no'`` (equal to ``foo ? foo : 'no'``) * ``foo ? 'yes'`` (equal to ``foo ? 'yes' : ''``) + +Built-in Objects and Variables +------------------------------ + +When using this component inside a Symfony application, certain objects and +variables are automatically injected by Symfony so you can use them in your +expressions (e.g. the request, the current user, etc.): + +* :doc:`Variables available in security expressions `; +* :doc:`Variables available in service container expressions `; +* :doc:`Variables available in routing expressions `. +