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 EventBusInterface $bus_publisher |
||
34 | * @param MiddlewareChain $chain |
||
35 | */ |
||
36 | public function __construct(EventBusInterface $bus_publisher, MiddlewareChain $chain) |
||
41 | |||
42 | /** |
||
43 | * @param EventInterface $event |
||
44 | */ |
||
45 | public function publish(EventInterface $event) |
||
49 | |||
50 | /** |
||
51 | * @param AggregateEventsInterface $aggregator |
||
52 | */ |
||
53 | 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 | public function getRegisteredEventListeners() |
||
70 | } |
||
71 |