Methods |
public
static
|
dispatch(object $event): object
Dispatch an event to listeners registered to receive it (see {@see EventDispatcher::dispatch()})
Dispatch an event to listeners registered to receive it (see {@see EventDispatcher::dispatch()})
|
#
|
public
static
|
getListenersForEvent(object $event): array<callable(object): mixed>
See {@see EventDispatcher::getListenersForEvent()}
See {@see EventDispatcher::getListenersForEvent()}
|
#
|
public
static
|
listen(callable(object): mixed $listener, string[]|string|null $event = null): int
Register an event listener with the dispatcher (see {@see EventDispatcher::listen()})
Register an event listener with the dispatcher (see {@see EventDispatcher::listen()})
|
#
|
public
static
|
removeListener(int $id): void
Remove an event listener from the dispatcher (see {@see EventDispatcher::removeListener()})
Remove an event listener from the dispatcher (see {@see EventDispatcher::removeListener()})
|
#
|