Skip to content

Commit 9007f8d

Browse files
committed
Fixed a merge conflict
1 parent 29228c5 commit 9007f8d

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

reference/twig_reference.rst

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -624,28 +624,8 @@ Global Variables
624624
app
625625
~~~
626626

627-
<<<<<<< HEAD
628627
The ``app`` variable is injected automatically by Symfony in all templates and
629628
provides access to lots of useful application information. Read more about the
630629
:ref:`Twig global app variable <twig-app-variable>`.
631630

632631
.. _`default filters and functions defined by Twig`: https://twig.symfony.com/doc/2.x/#reference
633-
=======
634-
The ``app`` variable is available everywhere and gives access to many commonly
635-
needed objects and values. It is an instance of
636-
:class:`Symfony\\Bundle\\FrameworkBundle\\Templating\\GlobalVariables`.
637-
638-
The available attributes are:
639-
640-
* ``app.user``, a PHP object representing the current user;
641-
* ``app.request``, a :class:`Symfony\\Component\\HttpFoundation\\Request` object;
642-
* ``app.session``, a :class:`Symfony\\Component\\HttpFoundation\\Session\\Session` object;
643-
* ``app.environment``, a string with the name of the execution environment;
644-
* ``app.debug``, a boolean telling whether the debug mode is enabled in the app;
645-
* ``app.token``, a :class:`Symfony\\Component\\Security\\Core\\Authentication\\Token\\TokenInterface`
646-
object representing the security token
647-
* ``app.flashes``, returns flash messages from the session
648-
649-
.. _`Twig Reference`: https://twig.symfony.com/doc/2.x/#reference
650-
.. _`Twig Bridge`: https://github.com/symfony/symfony/tree/master/src/Symfony/Bridge/Twig/Extension
651-
>>>>>>> 3.4

0 commit comments

Comments
 (0)