| 1 | <?php |
||
| 16 | class Bus implements BusInterface |
||
| 17 | { |
||
| 18 | /** |
||
| 19 | * @var LocatorInterface |
||
| 20 | */ |
||
| 21 | private $locator; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @param LocatorInterface $locator |
||
| 25 | */ |
||
| 26 | 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 | public function publish(EventInterface $event) |
||
| 42 | |||
| 43 | /** |
||
| 44 | * @param AggregateEventsInterface $aggregator |
||
| 45 | */ |
||
| 46 | public function pullAndPublish(AggregateEventsInterface $aggregator) |
||
| 52 | |||
| 53 | /** |
||
| 54 | * @return ListenerCollection |
||
| 55 | */ |
||
| 56 | public function getRegisteredEventListeners() |
||
| 60 | } |
||
| 61 |