File tree Expand file tree Collapse file tree 1 file changed +0
-20
lines changed Expand file tree Collapse file tree 1 file changed +0
-20
lines changed Original file line number Diff line number Diff line change @@ -624,28 +624,8 @@ Global Variables
624624app
625625~~~
626626
627- <<<<<<< HEAD
628627The ``app `` variable is injected automatically by Symfony in all templates and
629628provides 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
You can’t perform that action at this time.
0 commit comments