Skip to content

Commit

Permalink
feature #6077 fixes #5971 (vincentaubert)
Browse files Browse the repository at this point in the history
This PR was merged into the 2.7 branch.

Discussion
----------

fixes #5971

Commits
-------

cf0a650 fixes #5971
  • Loading branch information
wouterj committed Feb 6, 2016
2 parents a31dcc0 + cf0a650 commit fc041c5
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 fc041c5

Please sign in to comment.