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.
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
156156Twig Templating
157157~~~~~~~~~~~~~~~
You can’t perform that action at this time.
0 commit comments