We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 115ff31 commit f46a61cCopy full SHA for f46a61c
book/security.rst
@@ -1189,6 +1189,15 @@ look like:
1189
method of an anonymous user object will return true. To check if your
1190
user is actually authenticated, check for the ``IS_AUTHENTICATED_FULLY``
1191
role.
1192
+
1193
+In a Twig Template this object can be accessed via :class:`Symfony\\Bundle\\FrameworkBundle\\Templating\\GlobalVariables`
1194
1195
+.. configuration-block::
1196
1197
+ .. code-block:: html+jinja
1198
1199
+ <p>Username: {{ app.user.username }}</p>
1200
1201
1202
Using Multiple User Providers
1203
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
0 commit comments