migrations icon indicating copy to clipboard operation
migrations copied to clipboard

DependencyFactory::getEventDispatcher triggers a deprecation

Open VincentLanglet opened this issue 10 months ago • 6 comments

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

VincentLanglet avatar Aug 11 '23 08:08 VincentLanglet