| Conditions | 1 |
| Paths | 1 |
| Total Lines | 15 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 16 | public function dispatch(object $event) |
||
| 17 | { |
||
| 18 | $this->listenerProvider->getListenersForEvent($event); |
||
| 19 | |||
| 20 | /** @var array<callable> */ |
||
| 21 | $listeners = $this->listenerProvider->getListenersForEvent($event); |
||
| 22 | |||
| 23 | array_map( |
||
| 24 | function (callable $listener) use ($event): void { |
||
| 25 | $listener($event); |
||
| 26 | }, |
||
| 27 | $listeners |
||
|
|
|||
| 28 | ); |
||
| 29 | |||
| 30 | return $event; |
||
| 31 | } |
||
| 33 |