Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit5dafdf6

Browse files
committed
Improved the description of the global Twig variables
1 parent280d0e8 commit5dafdf6

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

‎reference/twig_reference.rst‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -743,12 +743,12 @@ needed objects and values. It is an instance of
743743

744744
The available attributes are:
745745

746-
* ``app.user``
747-
* ``app.request``
748-
* ``app.session``
749-
* ``app.environment``
750-
* ``app.debug``
751-
* ``app.security`` (deprecated as of 2.6)
746+
* ``app.user``, a PHP object representing the current user;
747+
* ``app.request``, a:class:``Symfony\\Component\\HttpFoundation\\Request`` object;
748+
* ``app.session``, a:class:``Symfony\\Component\\HttpFoundation\\Session\\Session`` object;
749+
* ``app.environment``, a string with the name of the execution environment;
750+
* ``app.debug``, a boolean telling whether the debug mode is enabled in the app;
751+
* ``app.security`` (deprecated as of 2.6).
752752

753753
..caution::
754754

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp