1 | <?php |
||
19 | class SymfonyBridge implements DispatcherInterface |
||
20 | { |
||
21 | /** |
||
22 | * The event dispatcher used to invoke events. |
||
23 | * |
||
24 | * @var EventDispatcherInterface |
||
25 | */ |
||
26 | private $eventDispatcher; |
||
27 | |||
28 | /** |
||
29 | * Initializes a new instance of this class. |
||
30 | * |
||
31 | * @param EventDispatcherInterface $eventDispatcher The Symfony EventDispatcher |
||
32 | */ |
||
33 | 4 | public function __construct(EventDispatcherInterface $eventDispatcher) |
|
37 | |||
38 | /** |
||
39 | * {@inheritDoc} |
||
40 | * |
||
41 | * @param string $event The name of the Event which should be dispatched |
||
42 | * @param array $options The options that should get passed to the callback |
||
43 | */ |
||
44 | 4 | public function dispatch($event, $options) |
|
52 | |||
53 | /** |
||
54 | * Gets the original EventDispatcher |
||
55 | * |
||
56 | * @return EventDispatcherInterface |
||
57 | */ |
||
58 | 3 | public function getOriginal() |
|
62 | } |
||
63 |