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 #102
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
When dispatching a message through amqp enqueue bundle I get this error:
Here are my related dependencies
Changing:
use Doctrine\Common\Persistence\ManagerRegistry;
byuse Doctrine\Bundle\DoctrineBundle\Registry as ManagerRegistry;
did the job for me