8000 Merge branch '2.8' into 3.2 · symfony/symfony-docs@57331b3 · GitHub
[go: up one dir, main page]

Skip to content

Commit 57331b3

Browse files
committed
Merge branch '2.8' into 3.2
* 2.8: Improved the description of the global Twig variables
2 parents 72bd8ed + 391799d commit 57331b3

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

reference/twig_reference.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -731,11 +731,11 @@ needed objects A714 and values. It is an instance of
731731

732732
The available attributes are:
733733

734-
* ``app.user``
735-
* ``app.request``
736-
* ``app.session``
737-
* ``app.environment``
738-
* ``app.debug``
734+
* ``app.user``, a PHP object representing the current user;
735+
* ``app.request``, a :class:``Symfony\\Component\\HttpFoundation\\Request`` object;
736+
* ``app.session``, a :class:``Symfony\\Component\\HttpFoundation\\Session\\Session`` object;
737+
* ``app.environment``, a string with the name of the execution environment;
738+
* ``app.debug``, a boolean telling whether the debug mode is enabled in the app;
739739

740740
.. _`Twig Reference`: http://twig.sensiolabs.org/documentation#reference
741741
.. _`Twig Extensions repository`: https://github.com/twigphp/Twig-extensions

0 commit comments

Comments
 (0)
0