无法加载类型 "sonata_simple_formatter_type"
Could not load type "sonata_simple_formatter_type"
我正在使用 Symfony 框架 和 SonataBundle 构建管理应用程序。
当我尝试设置 blob 类型的字段并使用 "sonata_simple_formatter_type" 时26=]SonataFormatterBundle,我得到了错误:
Could not load type "sonata_simple_formatter_type"
这是我的 composer.json 文件:
"symfony/symfony": "2.8.*",
"doctrine/orm": "^2.4.8",
//*...*/
"sonata-project/admin-bundle": "2.3.10",
"sonata-project/doctrine-orm-admin-bundle": "2.3.3",
"sonata-project/user-bundle": "2.2.4",
"sonata-project/formatter-bundle": "2.3.3",
我更喜欢这个 link 而不是制作管理应用程序:sonata formatter
要修复错误,您还需要配置 SonataFormatterBundle:https://sonata-project.org/bundles/formatter/master/doc/reference/installation.html
对于 SonataAdminBundle,您还需要做一些额外的配置:https://sonata-project.org/bundles/formatter/master/doc/reference/formatter_widget.html#sonata-admin-integration
我正在使用 Symfony 框架 和 SonataBundle 构建管理应用程序。
当我尝试设置 blob 类型的字段并使用 "sonata_simple_formatter_type" 时26=]SonataFormatterBundle,我得到了错误:
Could not load type "sonata_simple_formatter_type"
这是我的 composer.json 文件:
"symfony/symfony": "2.8.*",
"doctrine/orm": "^2.4.8",
//*...*/
"sonata-project/admin-bundle": "2.3.10",
"sonata-project/doctrine-orm-admin-bundle": "2.3.3",
"sonata-project/user-bundle": "2.2.4",
"sonata-project/formatter-bundle": "2.3.3",
我更喜欢这个 link 而不是制作管理应用程序:sonata formatter
要修复错误,您还需要配置 SonataFormatterBundle:https://sonata-project.org/bundles/formatter/master/doc/reference/installation.html
对于 SonataAdminBundle,您还需要做一些额外的配置:https://sonata-project.org/bundles/formatter/master/doc/reference/formatter_widget.html#sonata-admin-integration