File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -156,13 +156,13 @@ the CSRF generator and validated when binding the form.
156156
157157 $csrfStorage = new NativeSessionTokenStorage();
158158 // ...
159-
160- .. tip ::
161- If you want to disable CSRF on your form, you can give specific options to your form builder through the createBuilder() function:
162-
163- use Symfony \\ Component \\ Form \\ Extension \\ Core \\ Type \\ FormType
164-
165- $form = $formFactory->createBuilder(FormType::class, null, ['csrf_protection' => false])
159+
160+ You can disable CSRF protection per form using the `` csrf_protection `` option ::
161+
162+ use Symfony\\Component\\Form\\Extension\\Core\\Type\\FormType
163+
164+ $form = $formFactory->createBuilder(FormType::class, null, ['csrf_protection' => false])
165+ ->getForm();
166166
167167Twig Templating
168168~~~~~~~~~~~~~~~
You can’t perform that action at this time.
0 commit comments