mini\Hooks\Event class

Documentation

Event dispatcher for events that can trigger multiple times

Inheritance

Extends: mini\Hooks\Dispatcher

Properties (2)

protected array $listeners
protected array $onceListeners

Methods (16)

Invoke all event listeners with the provided arguments

Subscribe to this event

Subscribe and auto-unsubscribe after first trigger

Unsubscribe from this event

Documentation missing

Get a description of the event dispatcher

Get the filename where this event dispatcher was created

Get the line number where this event dispatcher was created

Configure event loop integration

Invoke all listeners in an array

Handle an exception from a listener

Filter array to remove specific values

Schedule a function to run when runEvents() is called

Run all scheduled events

Remove values from multiple arrays by reference

Invoke a listener with exception handling

Source

src/Hooks/Event.php:12-69