$listeners
$listeners : array
Collection off listeners
EventDispatcher
__construct(\Pivot\Core\Services\ServiceLocator $serviceLocator)
Construct EventDispatcher
| \Pivot\Core\Services\ServiceLocator | $serviceLocator |
addSubscriber(\Pivot\Events\Mediator\EventSubscriberInterface $subscriber) : \Pivot\Events\Mediator\EventDispatcherInterface
Add a subscriber
| \Pivot\Events\Mediator\EventSubscriberInterface | $subscriber |
addListener(mixed $listener, array $events) : \Pivot\Events\Mediator\EventDispatcherInterface
Add an event listener
| mixed | $listener | Thing listening to the event |
| array | $events | Events to subscribe to |