![](/img/trans.png)
[英]Type error: Argument 1 passed to Symfony\Bridge\Twig\Extension\SecurityExtension::__construct() must be an instance of
[英]Argument 3 passed to Sonata\Twig\Extension\TemplateExtension::__construct()
自从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
有谁知道如何解决它?
它是sonata-project / core-bundle(3.13.2)中的错误
检查此GIT: https : //github.com/sonata-project/SonataCoreBundle/issues/613
更新索纳塔项目/学说扩展(1.1.2 => 1.1.3):下载(100%)更新索纳塔项目/核心包(3.13.2 => 3.13.4):下载(100%)
是的,他们今天修复了它! 谢谢。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.