gpt4 book ai didi

php - SonataAdminBundle 缺少 form.type_extension.csrf.enabled 参数

转载 作者:可可西里 更新时间:2023-10-31 23:39:43 25 4
gpt4 key购买 nike

我正在关注 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/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com