summaryrefslogtreecommitdiff
path: root/vendor/doctrine/event-manager/UPGRADE.md
blob: 25154ef71238c75792843d2fd8909a9c486bd3f0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# Upgrade to 2.0

## Made the `$event` parameter of `EventManager::getListeners()` mandatory

When calling `EventManager::getListeners()` you need to specify the event that
you want to fetch the listeners for. Call `getAllListeners()` instead if you
want to access the listeners of all events.

# Upgrade to 1.2

## Deprecated calling `EventManager::getListeners()` without an event name

When calling `EventManager::getListeners()` without an event name, all
listeners were returned, keyed by event name. A new method `getAllListeners()`
has been added to provide this functionality. It should be used instead.