Missing form.type_extension.csrf.enabled parameter using SonataAdminBundle

I follow the SonataAdminBundle documentation, so I installed the Bundles and added them to AppKernel, now I'm stuck in the configuration. I used the basic configuration, but I keep getting this error:

The service "sonata.admin.builder.orm_datagrid" has a dependency on a non-existent parameter "form.type_extension.csrf.enabled".

I do not know what this parameter is, and how to set it correctly.

+4
source share
1 answer

in yours app/config/ymlyou should have a line like:

framework:
    #csrf_protection: ~

make sure it is not commented out:

framework:
    csrf_protection: ~
+1
source

All Articles