Skip to content

Commit

Permalink
fixes #5971
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentaubert committed Jan 9, 2016
1 parent a48c537 commit 468061e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions components/form/introduction.rst
Original file line number Diff line number Diff line change
Expand Up @@ -146,12 +146,12 @@ and validated when binding the form.
.. tip::

If you're not using the HttpFoundation component, you can use
:class:`Symfony\\Component\\Form\\Extension\\Csrf\\CsrfProvider\\DefaultCsrfProvider`
:class:`Symfony\\Component\\Security\\Csrf\\TokenStorage\\NativeSessionTokenStorage`
instead, which relies on PHP's native session handling::

use Symfony\Component\Form\Extension\Csrf\CsrfProvider\DefaultCsrfProvider;
use Symfony\Component\Security\Csrf\TokenStorage\NativeSessionTokenStorage;

$csrfProvider = new DefaultCsrfProvider($csrfSecret);
$csrfProvider = new NativeSessionTokenStorage();

Twig Templating
~~~~~~~~~~~~~~~
Expand Down

0 comments on commit 468061e

Please sign in to comment.