doctrine / event-manager

The Doctrine Event Manager is a library that provides a simple event system.
https://www.doctrine-project.org/projects/event-manager.html
MIT License
5.94k stars 21 forks source link

Split `getAllListeners()` out of `getListeners()` #50

Closed derrabus closed 2 years ago

derrabus commented 2 years ago

While #46 kind of explained the current API to static analysers, I think we should split the two ways of calling getListeners() into two separate methods. With this PR, I'd like to add a method getAllListeners() and deprecate calling getListeners() without an event name. This should make the API a lot cleaner in a future 2.0 release.

greg0ire commented 2 years ago

Needs a rebase

greg0ire commented 2 years ago

Thanks @derrabus !