| 1 | <?php |
||
| 24 | class EventDispatcherHelper { |
||
| 25 | |||
| 26 | /** |
||
| 27 | * Dispatch an event. |
||
| 28 | * |
||
| 29 | * @param EventDispatcherInterface|null $eventDispatcher The event dispatcher. |
||
| 30 | * @param string $eventName The event name. |
||
| 31 | * @param BaseEvent $event The event. |
||
| 32 | * @return BaseEvent|null Returns the event in case of success, null otherwise. |
||
| 33 | */ |
||
| 34 | 45 | public static function dispatch(EventDispatcherInterface $eventDispatcher = null, string $eventName, BaseEvent $event): ?BaseEvent { |
|
| 46 | } |
||
| 47 |