自从4.1.8升级到Symfony 4.2之后,我一直收到以下错误:
22:00:39 CRITICAL [php] Argument 3 passed to Sonata\Twig\Extension\TemplateExtension::__construct() must be an instance of Sonata\CoreBundle\Model\Adapter\AdapterInterface, instance of Sonata\Doctrine\Adapter\AdapterChain given, called in /home/kostya/projects/php/www/hillel/sf_store/var/cache/dev/ContainerOrMv7ZL/srcApp_KernelDevDebugContainer.php on line 1265 ["exception" => Symfony\Component\Debug\Exception\FatalThrowableError { …}]
!!
!! In TemplateExtension.php line 40:
!!
!! Argument 3 passed to Sonata\Twig\Extension\TemplateExtension::__construct()
!! must be an instance of Sonata\CoreBundle\Model\Adapter\AdapterInterface, i
!! nstance of Sonata\Doctrine\Adapter\AdapterChain given, called in /home/kost
!! ya/projects/php/www/hillel/sf_store/var/cache/dev/ContainerOrMv7ZL/srcApp_K
!! ernelDevDebugContainer.php on line 1265
有人知道如何解决吗?
答案 0 :(得分:1)
它是sonata-project / core-bundle(3.13.2)中的错误
检查此GIT:https://github.com/sonata-project/SonataCoreBundle/issues/613
答案 1 :(得分:0)
更新Sonata-Project / Doctrine-Extensions(1.1.2 => 1.1.3): 下载(100%)更新sonata-project / core-bundle(3.13.2 => 3.13.4):下载(100%)
是的,他们今天已将其修复!!谢谢。