Skip to content

Commit

Permalink
s Added depracation reference in twig_reference.rst
Browse files Browse the repository at this point in the history
  • Loading branch information
Iltar van der Berg committed Aug 29, 2014
1 parent a1f10a3 commit 0bb3dd0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion book/templating.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1156,7 +1156,7 @@ automatically:
<?php endif; ?>

.. versionadded:: 2.6
The ``app.security`` is deprecated as of 2.6. The user is already available
The ``app.security`` global is deprecated as of 2.6. The user is already available
as ``app.user`` and ``is_granted()`` is registered as function.

.. tip::
Expand Down
4 changes: 4 additions & 0 deletions reference/twig_reference.rst
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,10 @@ Global Variables
| ``app.security`` | instance of :class:`Symfony\\Bundle\\FrameworkBundle\\Templating\\GlobalVariables` |
+-------------------------------------------------------+------------------------------------------------------------------------------------+

.. versionadded:: 2.6
The ``app.security`` global is deprecated as of 2.6. The user is already available
as ``app.user`` and ``is_granted()`` is registered as function.

Symfony Standard Edition Extensions
-----------------------------------

Expand Down

0 comments on commit 0bb3dd0

Please sign in to comment.