Conditions | 4 |
Paths | 3 |
Total Lines | 10 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
22 | public function dispatch(object $event): object |
||
23 | { |
||
24 | foreach ($this->listenerProvider->getListenersForEvent($event) as $listener) { |
||
25 | if ($event instanceof StoppableEventInterface && $event->isPropagationStopped()) { |
||
26 | return $event; |
||
27 | } |
||
28 | $listener($event); |
||
29 | } |
||
30 | |||
31 | return $event; |
||
32 | } |
||
34 |