-
Notifications
You must be signed in to change notification settings - Fork 444
Description
The enqueue/enqueue package is incompatible with Doctrine bundle v2 when used with Symfony because Symfony\Bridge\Doctrine\RegistryInterface
is no longer aliased to the doctrine
service (https://github.com/doctrine/DoctrineBundle/blob/master/UPGRADE-2.0.md#service-aliases).
Argument 1 passed to Enqueue\Doctrine\DoctrineConnectionFactoryFactory::__construct() must be an instance of Symfony\Bridge\Doctrine\RegistryInterface, instance of Doctrine\Bundle\DoctrineBundle\Registry given
I downgraded the Doctrine bundle to 1.6, but then the ServiceEntityRepository
class from the v2 Doctrine bundle is unavailable, and I am relying on it.
I don’t know what the milestones are for the enqueue package, so I don’t really know what the exact solution is to maintain BC. For the time being, I am planning on forking the repo and changing the typehint from Symfony\Bridge\Doctrine\RegistryInterface
to Doctrine\Common\Persistence\ManagerRegistry
.