Skip to content

Commit 6fcab8c

Browse files
author
Chris Tickner
committed
[Book] [Templating] Edits based on feedback from @stof
1 parent feaf15d commit 6fcab8c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

book/templating.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -876,14 +876,14 @@ Global Template Variables
876876

877877
During each request, Symfony2 will set a global template variable ``app``
878878
in both Twig and PHP template engines by default. The ``app`` variable
879-
is a :class:`<Symfony\\Bundle\\FrameworkBundle\\Templating\\GlobalVariables>`
880-
object which will give you access to some application specific variables
879+
is a :class:`Symfony\\Bundle\\FrameworkBundle\\Templating\\GlobalVariables`
880+
instance which will give you access to some application specific variables
881881
automatically:
882882

883-
* ``app.security`` - The security context service.
883+
* ``app.security`` - The security context.
884884
* ``app.user`` - The current user object.
885885
* ``app.request`` - The request object.
886-
* ``app.session`` - The session object. Equivalent to ``app.request.session``.
886+
* ``app.session`` - The session object.
887887
* ``app.environment`` - The current environment (dev, prod, etc).
888888
* ``app.debug`` - True if in debug mode. False otherwise.
889889

@@ -907,7 +907,7 @@ automatically:
907907

908908
.. tip::
909909

910-
You can set your own global template variables. See the cookbook example
910+
You can add your own global template variables. See the cookbook example
911911
on :doc:`Global Variables</cookbook/templating/global_variables>`.
912912

913913
.. index::

0 commit comments

Comments
 (0)