| 1 | <?php |
||
| 15 | class Bus implements BusInterface |
||
| 16 | { |
||
| 17 | /** |
||
| 18 | * @var LocatorInterface |
||
| 19 | */ |
||
| 20 | private $locator; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @param LocatorInterface $locator |
||
| 24 | */ |
||
| 25 | public function __construct(LocatorInterface $locator) |
||
| 29 | |||
| 30 | /** |
||
| 31 | * Publishes the event $event to every EventListener that wants to. |
||
| 32 | * |
||
| 33 | * @param EventInterface $event |
||
| 34 | */ |
||
| 35 | public function publish(EventInterface $event) |
||
| 41 | |||
| 42 | /** |
||
| 43 | * @return ListenerCollection |
||
| 44 | */ |
||
| 45 | public function getRegisteredEventListeners() |
||
| 49 | } |
||
| 50 |