| Conditions | 3 |
| Paths | 3 |
| Total Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 57 | private function emitEvents(array $events = []): void |
||
| 58 | { |
||
| 59 | foreach ($events as $event) { |
||
| 60 | try { |
||
| 61 | $this->emitter->emit($event); |
||
| 62 | } catch (\Exception $exception) { |
||
| 63 | $this->logger->error("Failed to handle event {$event->getName()}: {$exception->getMessage()}", [ |
||
| 64 | 'exception' => $exception, |
||
| 65 | ]); |
||
| 66 | } |
||
| 67 | } |
||
| 68 | } |
||
| 69 | } |
||
| 70 |