File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -146,12 +146,12 @@ and validated when binding the form.
146
146
.. tip ::
147
147
148
148
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 `
150
150
instead, which relies on PHP's native session handling::
151
151
152
- use Symfony\Component\Form\Extension\ Csrf\CsrfProvider\DefaultCsrfProvider ;
152
+ use Symfony\Component\Security\ Csrf\TokenStorage\NativeSessionTokenStorage ;
153
153
154
- $csrfProvider = new DefaultCsrfProvider($csrfSecret );
154
+ $csrfProvider = new NativeSessionTokenStorage( );
155
155
156
156
Twig Templating
157
157
~~~~~~~~~~~~~~~
You can’t perform that action at this time.
0 commit comments