Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions reference/twig_reference.rst
Original file line number Diff line number Diff line change
Expand Up @@ -715,11 +715,13 @@ needed objects and values. It is an instance of

The available attributes are:

* ``app.user``
* ``app.request``
* ``app.session``
* ``app.environment``
* ``app.debug``
* ``app.user`` (a PHP object representing the current user)
* ``app.token`` (a :class:`Symfony\\Component\\Security\\Core\\Authentication\\Token\\TokenInterface`
object representing the security token)
* ``app.request`` (a :class:``Symfony\\Component\\HttpFoundation\\Request`` object)
* ``app.session`` (a :class:``Symfony\\Component\\HttpFoundation\\Session\\Session`` object)
* ``app.environment`` (a string with the name of the execution environment)
* ``app.debug`` (a boolean telling whether the debug mode is enabled in the app)

Symfony Standard Edition Extensions
-----------------------------------
Expand Down