Skip to content

Commit

Permalink
Few documentation fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
bobalazek committed May 20, 2016
1 parent 42bda7b commit 8f8c911
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 0 additions & 2 deletions doc/providers/csrf.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
CSRF token::

.. code-block:: php
use Symfony\Component\Security\Csrf\CsrfToken;

$app['csrf.token_manager']->isTokenValid(new CsrfToken('token_id', 'TOKEN'));
3 changes: 1 addition & 2 deletions doc/providers/twig.rst
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,7 @@ Security Support
If you are using the ``SecurityServiceProvider``, you will have access to the
``is_granted()`` function in templates. You can find more information in the
`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
~~~~~~~~~~~~~~~
Expand Down

0 comments on commit 8f8c911

Please sign in to comment.