Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit cf0a650

Browse filesBrowse files
committed
fixes #5971
1 parent f1c30e4 commit cf0a650
Copy full SHA for cf0a650

File tree

Expand file treeCollapse file tree

1 file changed

+3
-3
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-3
lines changed

‎components/form/introduction.rst

Copy file name to clipboardExpand all lines: components/form/introduction.rst
+3-3Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.