DispatcherInterface
interface DispatcherInterface implements EventTriggerableInterface (View source)
Interface DispatcherInterface
Methods
addListener(object|Closure $listener, array|integer $priorities = array())
Add a listener to this dispatcher, only if not already registered to these events.
listen(string $event, callable $callable, int $priority = ListenerPriority::NORMAL)
Add single listener.
Details
in EventTriggerableInterface at line line 28
EventInterface
triggerEvent(EventInterface|string $event, array $args = array())
Trigger an event.
at line line 31
DispatcherInterface
addListener(object|Closure $listener, array|integer $priorities = array())
Add a listener to this dispatcher, only if not already registered to these events.
If no events are specified, it will be registered to all events matching it's methods name. In the case of a closure, you must specify at least one event name.
at line line 44
DispatcherInterface
listen(string $event, callable $callable, int $priority = ListenerPriority::NORMAL)
Add single listener.