Skip to content

Commit 4130883

Browse files
committed
minor #7900 add app.flashes() to the Twig reference (xabbuh, javiereguiluz)
This PR was merged into the master branch. Discussion ---------- add app.flashes() to the Twig reference see #7808 (comment) Commits ------- b626c3e Minor typo e066653 add app.flashes() to the Twig reference
2 parents 0d32ce3 + b626c3e commit 4130883

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

reference/twig_reference.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -738,6 +738,7 @@ The available attributes are:
738738
* ``app.debug``, a boolean telling whether the debug mode is enabled in the app;
739739
* ``app.token`` (a :class:`Symfony\\Component\\Security\\Core\\Authentication\\Token\\TokenInterface`
740740
object representing the security token)
741+
* ``app.flashes``, returns flash messages from the session
741742

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

0 commit comments

Comments
 (0)