Just yesterday I was updated my project, and some packages includes new DoctrineBundle 2.0.0, and I was found this error:
In DoctrineTransportFactory.php line 29:
Argument 1 passed to Symfony\Component\Messenger\Transport\Doctrine\Doctrin
eTransportFactory::__construct() must be an instance of Symfony\Bridge\Doct
rine\RegistryInterface, instance of Doctrine\Bundle\DoctrineBundle\Registry
given, called in /builds/php/bcn/svc-pre-booking-manager/var/cache/test/Co
ntainerGv2wPhF/getMessenger_Transport_Doctrine_FactoryService.php on line 1
2
New Registry doesn't have implementation of RegistryInterface causing this fail.
@alcaeus so I guess symfony/messenger 4.3 is incompatible with DoctrineBundle 2?
fixed in symfony/symfony#34517
Hi all,
I'm having the same issue even with DoctrineBundle v2.0.2 and Symfony in v4.3.8.
Regards,
MA
@malorentelopez the fix in Symfony is not released yet. You will need to use the dev version of 4.3 for now (it will be part of the next patch release)
Most helpful comment
fixed in symfony/symfony#34517