Skip to content

Commit 63357ca

Browse files
committed
minor #12637 Add some links to objects injected by Symfony in expressions (javiereguiluz)
This PR was merged into the 3.4 branch. Discussion ---------- Add some links to objects injected by Symfony in expressions Commits ------- f3cb32e Add some links to objects injected by Symfony in expressions
2 parents 1b56c9c + f3cb32e commit 63357ca

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

components/expression_language/syntax.rst

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -308,3 +308,15 @@ Ternary Operators
308308
* ``foo ? 'yes' : 'no'``
309309
* ``foo ?: 'no'`` (equal to ``foo ? foo : 'no'``)
310310
* ``foo ? 'yes'`` (equal to ``foo ? 'yes' : ''``)
311+
312+
Built-in Objects and Variables
313+
------------------------------
314+
315+
When using this component inside a Symfony application, certain objects and
316+
variables are automatically injected by Symfony so you can use them in your
317+
expressions (e.g. the request, the current user, etc.):
318+
319+
* :doc:`Variables available in security expressions </security/expressions>`;
320+
* :doc:`Variables available in service container expressions </service_container/expression_language>`;
321+
* :doc:`Variables available in routing expressions </routing/conditions>`.
322+

0 commit comments

Comments
 (0)