| Conditions | 4 |
| Paths | 6 |
| Total Lines | 15 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 35 | public function __invoke(Event $event, callable $next = null) |
||
| 36 | { |
||
| 37 | $handlerNames = $this->eventTranslator->handlerName($event); |
||
| 38 | |||
| 39 | foreach ($handlerNames as $handlerLists) { |
||
| 40 | foreach ($handlerLists as $handlerName) { |
||
|
|
|||
| 41 | $handlerInstance = $this->handlerResolver->instantiate($handlerName); |
||
| 42 | $handlerInstance($event); |
||
| 43 | } |
||
| 44 | } |
||
| 45 | |||
| 46 | if ($next) { |
||
| 47 | $next($event); |
||
| 48 | } |
||
| 49 | } |
||
| 50 | } |
||
| 51 |