Doctrinebundle: DoctrineTransportFactory.php bad implementation

Created on 21 Nov 2019  路  4Comments  路  Source: doctrine/DoctrineBundle

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.

Bug

Most helpful comment

fixed in symfony/symfony#34517

All 4 comments

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)

Was this page helpful?
0 / 5 - 0 ratings