Commit 554fa106 authored by Fabien Potencier's avatar Fabien Potencier

minor #1369 Minor documentation fixes (bobalazek)

This PR was merged into the 2.0.x-dev branch.

Discussion
----------

Minor documentation fixes

Commits
-------

8f8c9113 Few documentation fixes
parents 17371e17 8f8c9113
...@@ -47,8 +47,6 @@ You can also use the CSRF protection even without using the Symfony Form ...@@ -47,8 +47,6 @@ You can also use the CSRF protection even without using the Symfony Form
component. If, for example, you're doing a DELETE action, you can check the component. If, for example, you're doing a DELETE action, you can check the
CSRF token:: CSRF token::
.. code-block:: php
use Symfony\Component\Security\Csrf\CsrfToken; use Symfony\Component\Security\Csrf\CsrfToken;
$app['csrf.token_manager']->isTokenValid(new CsrfToken('token_id', 'TOKEN')); $app['csrf.token_manager']->isTokenValid(new CsrfToken('token_id', 'TOKEN'));
...@@ -110,8 +110,7 @@ Security Support ...@@ -110,8 +110,7 @@ Security Support
If you are using the ``SecurityServiceProvider``, you will have access to the If you are using the ``SecurityServiceProvider``, you will have access to the
``is_granted()`` function in templates. You can find more information in the ``is_granted()`` function in templates. You can find more information in the
`Symfony Security documentation `Symfony Security documentation
<http://symfony.com/doc/current/book/security.html#access-control-in-templates>` <http://symfony.com/doc/current/book/security.html#access-control-in-templates>`_.
_.
Global Variable Global Variable
~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment