| Conditions | 2 |
| Paths | 2 |
| Total Lines | 7 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 23 | 2 | public function publish(ApplicationOutboundEvent $event) |
|
| 24 | { |
||
| 25 | 2 | if (EventIdHolder::isSet()) { |
|
| 26 | 2 | $event->setEventId(EventIdHolder::get()); |
|
| 27 | } |
||
| 28 | 2 | $this->logger->info(sprintf("[event]: Publishing Outbound Event %s(%s)", $event::class, $event)); |
|
| 29 | 2 | $this->messageBus->dispatch($event); |
|
| 30 | 2 | } |
|
| 32 | } |