Skip to content

Commit 5dafdf6

Browse files
committed
Improved the description of the global Twig variables
1 parent 280d0e8 commit 5dafdf6

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
@@ -743,12 +743,12 @@ needed objects and values. It is an instance of
743743

744744
The available attributes are:
745745

746-
* ``app.user``
747-
* ``app.request``
748-
* ``app.session``
749-
* ``app.environment``
750-
* ``app.debug``
751-
* ``app.security`` (deprecated as of 2.6)
746+
* ``app.user``, a PHP object representing the current user;
747+
* ``app.request``, a :class:``Symfony\\Component\\HttpFoundation\\Request`` object;
748+
* ``app.session``, a :class:``Symfony\\Component\\HttpFoundation\\Session\\Session`` object;
749+
* ``app.environment``, a string with the name of the execution environment;
750+
* ``app.debug``, a boolean telling whether the debug mode is enabled in the app;
751+
* ``app.security`` (deprecated as of 2.6).
752752

753753
.. caution::
754754

0 commit comments

Comments
 (0)