File tree 1 file changed +12
-0
lines changed
components/expression_language
1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -308,3 +308,15 @@ Ternary Operators
308
308
* ``foo ? 'yes' : 'no' ``
309
309
* ``foo ?: 'no' `` (equal to ``foo ? foo : 'no' ``)
310
310
* ``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
+
You can’t perform that action at this time.
0 commit comments