Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 63357ca

Browse filesBrowse 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
Copy full SHA for 63357ca

File tree

Expand file treeCollapse file tree

1 file changed

+12
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+12
-0
lines changed

‎components/expression_language/syntax.rst

Copy file name to clipboardExpand all lines: components/expression_language/syntax.rst
+12Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.