diff --git a/book/templating.rst b/book/templating.rst index 35d477c0ed3..7aec931c838 100644 --- a/book/templating.rst +++ b/book/templating.rst @@ -1180,8 +1180,8 @@ automatically: .. versionadded:: 2.6 The global ``app.security`` variable (or the ``$app->getSecurity()`` - method in PHP templates) is deprecated as of Symfony 2.6. Use `app.user` - (`$app->getUser()`) and `is_granted()` (`$view['security']->isGranted()`) + method in PHP templates) is deprecated as of Symfony 2.6. Use ``app.user`` + (``$app->getUser()``) and ``is_granted()`` (``$view['security']->isGranted()``) instead. .. tip::