Since updating to Symfony 4.2 from 4.1.8, I keep getting the following error:
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
Does anyone have an idea how to fix it?
Its a bug in sonata-project/core-bundle (3.13.2)
Check this GIT: https://github.com/sonata-project/SonataCoreBundle/issues/613
Updating sonata-project/doctrine-extensions (1.1.2 => 1.1.3): Downloading (100%) Updating sonata-project/core-bundle (3.13.2 => 3.13.4): Downloading (100%)
Yes, they fixed it today!! Thanks.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.