diff --git a/components/form.rst b/components/form.rst index 9590929848b..4b8a2500fc6 100644 --- a/components/form.rst +++ b/components/form.rst @@ -134,7 +134,7 @@ The following snippet adds CSRF protection to the form factory:: $formFactory = Forms::createFormFactoryBuilder() // ... - ->addExtension(new CsrfExtension($csrfStorage)) + ->addExtension(new CsrfExtension($csrfManager)) ->getFormFactory(); Internally, this extension will automatically add a hidden field to every