interface
Illuminate
/
Contracts
/
Events
/
Dispatcher
Dispatcher
Methods
public
listen ( $events , $listener ) : void
Register an event listener with the dispatcher.
Parameters
public
hasListeners ( $eventName ) : bool
Determine if a given event has listeners.
Parameters
- $eventName string
public
subscribe ( $subscriber ) : void
Register an event subscriber with the dispatcher.
Parameters
- $subscriber object|string
public
until ( $event , $payload ) : mixed
Dispatch an event until the first non-null response is returned.
Parameters
- $event string|object
- $payload mixed
public
dispatch ( $event , $payload , $halt ) : array|null
Dispatch an event and call the listeners.
Parameters
- $event string|object
- $payload mixed
- $halt bool
public
push ( $event , $payload ) : void
Register an event and payload to be fired later.
Parameters
- $event string
- $payload array
public
flush ( $event ) : void
Flush a set of pushed events.
Parameters
- $event string
public
forget ( $event ) : void
Remove a set of listeners from the dispatcher.
Parameters
- $event string
public
forgetPushed ( ) : void
Forget all of the queued listeners.