File tree Expand file tree Collapse file tree 1 file changed +12
-5
lines changed Expand file tree Collapse file tree 1 file changed +12
-5
lines changed Original file line number Diff line number Diff line change @@ -1202,15 +1202,22 @@ instance which will give you access to some application specific variables
1202
1202
automatically:
1203
1203
1204
1204
``app.security ``
1205
- The security context.
1205
+ The :class: `Symfony\\ Component\\ Security\\ Core\\ SecurityContext ` object or
1206
+ ``null `` if there is none.
1206
1207
``app.user ``
1207
- The current user object.
1208
+ The representation of the current user or ``null `` if there is none. The
1209
+ value stored in this variable can be a :class: `Symfony\\ Component\\ Security\\ Core\\ User\\ UserInterface `
1210
+ object, any other object which implements a ``__toString() `` method or even
1211
+ a regular string.
1208
1212
``app.request ``
1209
- The request object.
1213
+ The :class: `Symfony\\ Component\\ HttpFoundation\\ Request ` object that represents
1214
+ the current request (depending on your application, this can be a sub-request
1215
+ or a regular request, as explained later).
1210
1216
``app.session ``
1211
- The session object.
1217
+ The :class: `Symfony\\ Component\\ HttpFoundation\\ Session\\ Session ` object that
1218
+ represents the current user's session or ``null `` if there is none.
1212
1219
``app.environment ``
1213
- The current environment (dev, prod, etc).
1220
+ The name of the current environment (`` dev ``, `` prod `` , etc).
1214
1221
``app.debug ``
1215
1222
True if in debug mode. False otherwise.
1216
1223
You can’t perform that action at this time.
0 commit comments