1 | <?php |
||
20 | class MiddlewareDomainEventBus implements EventBusInterface |
||
21 | { |
||
22 | /** |
||
23 | * @var EventBusInterface |
||
24 | */ |
||
25 | private $bus_publisher; |
||
26 | |||
27 | /** |
||
28 | * @var MiddlewareChain |
||
29 | */ |
||
30 | private $chain; |
||
31 | |||
32 | /** |
||
33 | * @param MiddlewareChain $chain |
||
34 | * @param EventBusInterface $bus_publisher |
||
35 | */ |
||
36 | 3 | public function __construct(MiddlewareChain $chain, EventBusInterface $bus_publisher) |
|
41 | |||
42 | /** |
||
43 | * @param EventInterface $event |
||
44 | */ |
||
45 | 2 | public function publish(EventInterface $event) |
|
49 | |||
50 | /** |
||
51 | * @param AggregateEventsInterface $aggregator |
||
52 | */ |
||
53 | 1 | public function pullAndPublish(AggregateEventsInterface $aggregator) |
|
59 | |||
60 | /** |
||
61 | * Get the list of every EventListener defined in the EventBus. |
||
62 | * This might be useful for debug. |
||
63 | * |
||
64 | * @return ListenerInterface[]|ListenerCollection |
||
65 | */ |
||
66 | 1 | public function getRegisteredEventListeners() |
|
70 | } |
||
71 |