migrations
migrations copied to clipboard
DependencyFactory::getEventDispatcher triggers a deprecation
Bug Report
Q | A |
---|---|
BC Break | no |
Version | x.y.z |
Summary
DependencyFactory::getEventDispatcher
is implemented this way:
return $this->getDependency(EventDispatcher::class, function (): EventDispatcher {
return new EventDispatcher(
$this->getConnection(),
$this->getConnection()->getEventManager(),
);
});
but Connection::getEventManager
is deprecated by dbal since https://github.com/doctrine/dbal/issues/5784
Not sure how to fix this @greg0ire @derrabus