Dispatchable
Less than 1 minute
Dispatchable
Trait Dispatchable
Provides a static dispatch
method to classes that use this trait. This allows event classes to be easily dispatched without needing to manually instantiate them and pass them to the EventDispatcher.
Methods
dispatch
Dispatch the event.
public dispatch(mixed $args): object
Creates a new instance of the class using this trait with the provided arguments, and then dispatches it through the EventDispatcher.
Parameters
Parameter | Type | Description |
---|---|---|
$args | mixed |
Generated by Hazaar API Doc Generator on Tue, 06 May 2025 01:33:01 +0000