1 | <?php |
||
16 | class Bus implements BusInterface |
||
17 | { |
||
18 | /** |
||
19 | * @var LocatorInterface |
||
20 | */ |
||
21 | private $locator; |
||
22 | |||
23 | /** |
||
24 | * @param LocatorInterface $locator |
||
25 | */ |
||
26 | 3 | public function __construct(LocatorInterface $locator) |
|
30 | |||
31 | /** |
||
32 | * Publishes the event $event to every EventListener that wants to. |
||
33 | * |
||
34 | * @param EventInterface $event |
||
35 | */ |
||
36 | 2 | public function publish(EventInterface $event) |
|
42 | |||
43 | /** |
||
44 | * @param AggregateEventsInterface $aggregator |
||
45 | */ |
||
46 | 1 | public function pullAndPublish(AggregateEventsInterface $aggregator) |
|
52 | |||
53 | /** |
||
54 | * @return ListenerCollection |
||
55 | */ |
||
56 | 1 | public function getRegisteredEventListeners() |
|
60 | } |
||
61 |