Php SonataAdminBundle缺少form.type_extension.csrf.enabled参数
我遵循SonataAdminBundle文档,所以我已经安装了这些bundle并将它们添加到AppKernel中,现在我仍停留在配置上。 我已经使用了基本配置,但一直出现以下错误:Php SonataAdminBundle缺少form.type_extension.csrf.enabled参数,php,symfony,configuration,Php,Symfony,Configuration,我遵循SonataAdminBundle文档,所以我已经安装了这些bundle并将它们添加到AppKernel中,现在我仍停留在配置上。 我已经使用了基本配置,但一直出现以下错误: The service "sonata.admin.builder.orm_datagrid" has a dependency on a non-existent parameter "form.type_extension.csrf.enabled". 我不知道这个参数是什么,也不知道如何正确设置它。在你的ap
The service "sonata.admin.builder.orm_datagrid" has a dependency on a non-existent parameter "form.type_extension.csrf.enabled".
我不知道这个参数是什么,也不知道如何正确设置它。在你的app/config/yml中,你应该有这样一行代码:
framework:
#csrf_protection: ~
framework:
csrf_protection: ~
确保未对其进行注释: