From 5dafdf6293dcd425c7978e16c2c2f40a8bf722f3 Mon Sep 17 00:00:00 2001 From: Javier Eguiluz Date: Sat, 15 Apr 2017 19:34:18 +0200 Subject: [PATCH] Improved the description of the global Twig variables --- reference/twig_reference.rst | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/reference/twig_reference.rst b/reference/twig_reference.rst index 4c220d482d3..869c3e740d8 100644 --- a/reference/twig_reference.rst +++ b/reference/twig_reference.rst @@ -743,12 +743,12 @@ needed objects and values. It is an instance of The available attributes are: -* ``app.user`` -* ``app.request`` -* ``app.session`` -* ``app.environment`` -* ``app.debug`` -* ``app.security`` (deprecated as of 2.6) +* ``app.user``, a PHP object representing the current user; +* ``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; +* ``app.security`` (deprecated as of 2.6). .. caution::