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 fc041c5

Browse filesBrowse 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
Copy full SHA for fc041c5

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.