From e0666535e9b1b9c3d314b5322c0be2160e299892 Mon Sep 17 00:00:00 2001 From: Christian Flothmann Date: Thu, 11 May 2017 14:01:43 +0200 Subject: [PATCH 1/2] add app.flashes() to the Twig reference --- reference/twig_reference.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/reference/twig_reference.rst b/reference/twig_reference.rst index 0ccbd640ea9..73bcd73ce18 100644 --- a/reference/twig_reference.rst +++ b/reference/twig_reference.rst @@ -738,6 +738,7 @@ The available attributes are: * ``app.debug``, a boolean telling whether the debug mode is enabled in the app; * ``app.token`` (a :class:`Symfony\\Component\\Security\\Core\\Authentication\\Token\\TokenInterface` object representing the security token) +* ``app.flashes()``, return flash messages from the session .. _`Twig Reference`: http://twig.sensiolabs.org/documentation#reference .. _`Twig Extensions repository`: https://github.com/twigphp/Twig-extensions From b626c3e5b5af5b37de201ffff29426e8df53ef54 Mon Sep 17 00:00:00 2001 From: Javier Eguiluz Date: Mon, 15 May 2017 14:52:22 +0200 Subject: [PATCH 2/2] Minor typo --- reference/twig_reference.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reference/twig_reference.rst b/reference/twig_reference.rst index 73bcd73ce18..e4fd138583f 100644 --- a/reference/twig_reference.rst +++ b/reference/twig_reference.rst @@ -738,7 +738,7 @@ The available attributes are: * ``app.debug``, a boolean telling whether the debug mode is enabled in the app; * ``app.token`` (a :class:`Symfony\\Component\\Security\\Core\\Authentication\\Token\\TokenInterface` object representing the security token) -* ``app.flashes()``, return flash messages from the session +* ``app.flashes``, returns flash messages from the session .. _`Twig Reference`: http://twig.sensiolabs.org/documentation#reference .. _`Twig Extensions repository`: https://github.com/twigphp/Twig-extensions