EventManager
class EventManager implements EventManagerInterface
Class EventManager
This is a global event handling manager. It will store
all listeners and subscribers for specific events
in an instance of EventObserverStorage
and trigger
the observers methods when an event is fired.
Constants
EVENT_CLASSNAME |
The default event class name
|
Methods
__construct()
Initialize the observers storage registry
setEventClass($name)
No description
getEventClass()
No description
addListener($event, $callback)
No description
removeListener($event, $callback)
No description
bool
hasListeners($event)
No description
array|null
getListeners($event)
No description
addSubscriber(
EventSubscriberInterface $subscriber)
No description
removeSubscriber(
EventSubscriberInterface $subscriber)
No description
mixed
triggerEvent(
string $event_name,
mixed $subject = null)
No description
Details
at line 57
__construct()
Initialize the observers storage registry