| Total Complexity | 3 |
| Total Lines | 19 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | final class EventPublisherExtension implements ExtensionInterface |
||
| 13 | { |
||
| 14 | use EmptyExtensionTrait; |
||
| 15 | |||
| 16 | private $eventPublisher; |
||
| 17 | |||
| 18 | public function __construct(EventPublisher $eventPublisher) |
||
| 21 | } |
||
| 22 | |||
| 23 | public function onPostReceived(Context $context): void |
||
| 24 | { |
||
| 25 | $this->eventPublisher->publish(); |
||
| 26 | } |
||
| 27 | |||
| 28 | public function onInterrupted(Context $context): void |
||
| 31 | } |
||
| 32 | } |
||
| 33 |