Compile Error: Declaration of Sonata\Translation Bundle\Block\LocaleSwitcherBlockService::validate Block()
Compile Error: Declaration of Sonata\Translation Bundle\Block\LocaleSwitcherBlockService::validate Block()
这是我的composer.json需要的内容
"require": {
//Some stuff
"beberlei/DoctrineExtensions": "*",
"sonata-project/admin-bundle": "dev-master",
"sonata-project/doctrine-orm-admin-bundle": "dev-master"
项目正常运行,但当我打开创建或编辑表单时出现以下错误:
Compile Error: Declaration of
Sonata\TranslationBundle\Block\LocaleSwitcherBlockService::validateBlock()
must be compatible with
Sonata\BlockBundle\Block\BlockAdminServiceInterface::validateBlock(Sonata\CoreBundle\Validator\ErrorElement
$errorElement, Sonata\BlockBundle\Model\BlockInterface $block)
找到修复,
在 sonata_translation.yml 文件中:
我设
盖德莫:
启用:假
而不是
盖德莫:
启用:真
这是我的composer.json需要的内容
"require": {
//Some stuff
"beberlei/DoctrineExtensions": "*",
"sonata-project/admin-bundle": "dev-master",
"sonata-project/doctrine-orm-admin-bundle": "dev-master"
项目正常运行,但当我打开创建或编辑表单时出现以下错误:
Compile Error: Declaration of Sonata\TranslationBundle\Block\LocaleSwitcherBlockService::validateBlock() must be compatible with Sonata\BlockBundle\Block\BlockAdminServiceInterface::validateBlock(Sonata\CoreBundle\Validator\ErrorElement $errorElement, Sonata\BlockBundle\Model\BlockInterface $block)
找到修复, 在 sonata_translation.yml 文件中: 我设
盖德莫: 启用:假
而不是
盖德莫: 启用:真