作者热门文章
- android - RelativeLayout 背景可绘制重叠内容
- android - 如何链接 cpufeatures lib 以获取 native android 库?
- java - OnItemClickListener 不起作用,但 OnLongItemClickListener 在自定义 ListView 中起作用
- java - Android 文件转字符串
我正在关注 SonataAdminBundle 文档,所以我已经安装了 Bundle 并将它们添加到 AppKernel 中,现在我陷入了配置。我已经使用了基本配置,但我一直收到此错误:
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: ~
关于php - SonataAdminBundle 缺少 form.type_extension.csrf.enabled 参数,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29989389/
我正在关注 SonataAdminBundle 文档,所以我已经安装了 Bundle 并将它们添加到 AppKernel 中,现在我陷入了配置。我已经使用了基本配置,但我一直收到此错误: The se
我是一名优秀的程序员,十分优秀!