Skip to content

Commit fc041c5

Browse files
committed
feature #6077 fixes #5971 (vincentaubert)
This PR was merged into the 2.7 branch. Discussion ---------- fixes #5971 Commits ------- cf0a650 fixes #5971
2 parents a31dcc0 + cf0a650 commit fc041c5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

components/form/introduction.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -146,12 +146,12 @@ and validated when binding the form.
146146
.. tip::
147147

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

152-
use Symfony\Component\Form\Extension\Csrf\CsrfProvider\DefaultCsrfProvider;
152+
use Symfony\Component\Security\Csrf\TokenStorage\NativeSessionTokenStorage;
153153

154-
$csrfProvider = new DefaultCsrfProvider($csrfSecret);
154+
$csrfProvider = new NativeSessionTokenStorage();
155155

156156
Twig Templating
157157
~~~~~~~~~~~~~~~

0 commit comments

Comments
 (0)