1 | <?php |
||
17 | class EventDispatcher extends SymfonyEventDispatcher |
||
18 | { |
||
19 | |||
20 | /** |
||
21 | * @var EventDispatcherInterface[] |
||
22 | */ |
||
23 | private $catchall = []; |
||
24 | |||
25 | /** |
||
26 | * @param EventDispatcherInterface $dispatcher |
||
27 | */ |
||
28 | 1 | public function addCatchall(EventDispatcherInterface $dispatcher) |
|
32 | |||
33 | /** |
||
34 | * @param string $eventName |
||
35 | * @param Event $event |
||
36 | * @return Event |
||
37 | * @throws RuntimeException |
||
38 | */ |
||
39 | 1 | public function dispatch($eventName, Event $event = null) |
|
53 | |||
54 | /** |
||
55 | * @param AbstractEvent $event |
||
56 | */ |
||
57 | 4 | public function dispatchEvent(AbstractEvent $event) |
|
66 | |||
67 | /** |
||
68 | * @param AbstractEvent $event |
||
69 | * @param int|null $timestamp |
||
70 | * @return Job |
||
71 | */ |
||
72 | 2 | public function dispatchInBackground(AbstractEvent $event, int $timestamp = 0) |
|
84 | |||
85 | /** |
||
86 | * @param AbstractEvent $event |
||
87 | * @throws RuntimeException |
||
88 | */ |
||
89 | 1 | private function dispatchAsWebsocketEvent(AbstractEvent $event) |
|
95 | } |
||
96 |