Method
Event::listen
Calls $listeners every time the event triggers.
Description#
public Event::listen(
Closure ...$listeners
): voidParameters#
- ...$listeners Closure
See also#
Event::onceCalls$listenersthe next time the event triggers, and not after.Event::offRemoves$listeners, whether they were added withlisten()oronce().