Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3a9e1ba

Browse files
committed
Merge branch '3.2'
* 3.2: [#7808] add description for app.token Added docs for workflow_marked_places() function Improved the description of the global Twig variables
2 parents 740f95b + 7dc3469 commit 3a9e1ba

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

reference/twig_reference.rst

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -731,11 +731,13 @@ needed objects 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;
739+
* ``app.token`` (a :class:`Symfony\\Component\\Security\\Core\\Authentication\\Token\\TokenInterface`
740+
object representing the security token)
739741

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

0 commit comments

Comments
 (0)