Event system
Simple php event system, (*1)
composer require eleven-x/event
, (*2)
Adds the listener function to the end of the listeners array for the event named $eventName
, (*3)
$eventName
$listener
$priority
$once
Adds a one time listener function for the event named $eventName
.
The next time $eventName
is triggered, this listener is removed and then invoked., (*4)
$eventName
$listener
Removes the specified listener from the listener array for the event named $eventName
., (*5)
$eventName
Whether there is a listener, (*6)
$eventName
Calls each of the listeners registered for the event named $eventName
, (*7)
$eventName
$event
MIT, (*8)