Argument 1 passed to Enqueue\Doctrine\DoctrineConnectionFactoryFactory::__construct() must be an instance of Doctrine\Common\Persistence\ManagerRegistry, instance of Doctrine\Bundle\DoctrineBundle\Registry given, called in Container8oM08ig/App_KernelDevDebugContainer.php on line 1027
jhfyang opened this issue · 2 comments
jhfyang commented
When dispatching a message through amqp enqueue bundle I get this error:
In DoctrineConnectionFactoryFactory.php line 23:
Argument 1 passed to Enqueue\Doctrine\DoctrineConnectionFactoryFactory::__construct() must be an instance of Doctrine\Common\Persiste
nce\ManagerRegistry, instance of Doctrine\Bundle\DoctrineBundle\Registry given, called in /var/www/html/noyz-symfony/var/cache/dev/Co
ntainer8oM08ig/App_KernelDevDebugContainer.php on line 1027
Here are my related dependencies
doctrine/common 3.0.2
doctrine/dbal 2.10.2
doctrine/doctrine-bundle 2.1.2
enqueue/amqp-bunny 0.10.1 Message Queue Amqp Transport
enqueue/amqp-tools 0.10.0 Message Queue Amqp Tools
enqueue/dsn 0.10.1 Parse DSN
enqueue/enqueue 0.10.3 Message Queue Library
enqueue/enqueue-bundle 0.10.3 Message Queue Bundle
enqueue/null 0.10.1 Enqueue Null transport
Changing:
use Doctrine\Common\Persistence\ManagerRegistry;
by
use Doctrine\Bundle\DoctrineBundle\Registry as ManagerRegistry;
did the job for me
celosauro commented
Related#1 doctrine/DoctrineBundle
#1204
celosauro commented
Related#2 php-enqueue/enqueue-dev
#1085