10000 minor #7808 Improved the description of the global Twig variables (ja… · symfony/symfony-docs@75623c4 · GitHub
[go: up one dir, main page]

Skip to content

Commit 75623c4

Browse files
committed
minor #7808 Improved the description of the global Twig variables (javiereguiluz)
This PR was merged into the 2.7 branch. Discussion ---------- Improved the description of the global Twig variables This finished #7191. When merged, don't forget to add this description in 3.2 and master: ``` * ``app.token`` (a :class:`Symfony\\Component\\Security\\Core\\Authentication\\Token\\TokenInterface` object representing the security token) ``` Commits ------- 5dafdf6 Improved the description of the global Twig variables
2 parents 7571315 + 5dafdf6 commit 75623c4

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

reference/twig_reference.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -759,12 +759,12 @@ needed objects and values. It is an instance of
759759

760760
The available attributes are:
761761

762-
* ``app.user``
763-
* ``app.request``
764-
* ``app.session``
765-
* ``app.environment``
766-
* ``app.debug``
767-
* ``app.security`` (deprecated as of 2.6)
762+
* ``app.user``, a PHP object representing the current user;
763+
* ``app.request``, a :class:``Symfony\\Component\\HttpFoundation\\Request`` object;
764+
* ``app.session``, a :class:``Symfony\\Component\\HttpFoundation\\Session\\Session`` object;
765+
* ``app.environment``, a string with the name of the execution environment;
766+
* ``app.debug``, a boolean telling whether the debug mode is enabled in the app;
767+
* ``app.security`` (deprecated as of 2.6).
768768

769769
.. caution::
770770

0 commit comments

Comments
 (0)
0