1 | <?php |
||
13 | class EventBus implements EventBusInterface |
||
14 | { |
||
15 | /** |
||
16 | * @var EventListenerLocatorInterface |
||
17 | */ |
||
18 | private $locator; |
||
19 | |||
20 | /** |
||
21 | * @param EventListenerLocatorInterface $locator |
||
22 | */ |
||
23 | public function __construct(EventListenerLocatorInterface $locator) |
||
27 | |||
28 | /** |
||
29 | * {@inheritdoc} |
||
30 | */ |
||
31 | public function publish(EventInterface $event) |
||
37 | |||
38 | /** |
||
39 | * {@inheritdoc} |
||
40 | */ |
||
41 | public function getRegisteredEventListeners() |
||
45 | |||
46 | /** |
||
47 | * @param EventInterface $event |
||
48 | * @param EventListenerCollection|EventListenerInterface[] $listeners |
||
49 | * |
||
50 | * @return array |
||
51 | */ |
||
52 | private function handleListenersForEvent(EventInterface $event, $listeners) |
||
62 | } |
||
63 |