Conditions | 3 |
Paths | 3 |
Total Lines | 10 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 3 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
35 | 3 | public function getListenersForEvent(EventInterface $event): iterable |
|
36 | { |
||
37 | 3 | foreach ($this->getEventListeners() as $listenerClass) { |
|
38 | 2 | if (!$listenerClass::supports($event)) { |
|
39 | 1 | continue; |
|
40 | } |
||
41 | |||
42 | 1 | $callback = $this->autowireHelper->autowire($listenerClass); |
|
43 | |||
44 | 1 | yield $callback(); |
|
45 | } |
||
72 |