juliangut / doctrine-base-repositories

Doctrine2 utility repositories
MIT License
3 stars 1 forks source link

Event listeners management #1

Closed juliangut closed 7 years ago

juliangut commented 7 years ago

On EventsTrait

Protected getEventManager() to replace several calls to $eventManager = $this->getManager()->getEventManager()

Public flatten event listeners when no event is provided to getEventListeners()

Protected getRegisteredEvents() => array_keys($eventManager->getListeners())