Conditions | 4 |
Paths | 4 |
Total Lines | 11 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
65 | final public function dispatch(Event $event): void |
||
66 | { |
||
67 | if (!$event instanceof ReceivedEvent && $this->discriminator->shouldEnqueue($event)) { |
||
68 | $this->queue->send($event); |
||
69 | } |
||
70 | |||
71 | if ($event instanceof ReceivedEvent) { |
||
72 | $event = $event->getOriginalEvent(); |
||
73 | } |
||
74 | |||
75 | $this->wrappedEventBus->dispatch($event); |
||
76 | } |
||
78 |