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