25 function on($eventName, callable $callBack, $priority = 100);
35 function once($eventName, callable $callBack, $priority = 100);
63 function emit($eventName, array $arguments = [], callable $continueCallBack =
null);
An exception for terminatinating execution or to throw for unit testing.
removeAllListeners($eventName=null)
Removes all listeners.
emit($eventName, array $arguments=[], callable $continueCallBack=null)
Emits an event.
removeListener($eventName, callable $listener)
Removes a specific listener from an event.
on($eventName, callable $callBack, $priority=100)
Subscribe to an event.
listeners($eventName)
Returns the list of listeners for an event.
once($eventName, callable $callBack, $priority=100)
Subscribe to an event exactly once.