8000 Merge branch '2.7' into 2.8 · symfony/symfony-docs@391799d · GitHub
[go: up one dir, main page]

Skip to content

Commit 391799d

Browse files
committed
Merge branch '2.7' into 2.8
* 2.7: Improved the description of the global Twig variables
2 parents 03969ea + 75623c4 commit 391799d

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
Symfony Standard Edition Extensions
770770
-----------------------------------

0 commit comments

Comments
 (0)
0