Documentation

AbstractHasDispatcher
in package
implements HasDispatcherInterface

Class that holds an event dispatcher

Table of Contents

Interfaces

HasDispatcherInterface
Holds an event dispatcher

Properties

$eventDispatcher  : EventDispatcherInterface

Methods

addSubscriber()  : self
Add an event subscriber to the dispatcher
dispatch()  : Event
Helper to dispatch Guzzle events and set the event name on the event
getAllEvents()  : array<string|int, mixed>
Get a list of all of the events emitted from the class
getEventDispatcher()  : EventDispatcherInterface
Get the EventDispatcher of the request
setEventDispatcher()  : self
Set the EventDispatcher of the request

Properties

Methods

dispatch()

Helper to dispatch Guzzle events and set the event name on the event

public dispatch(mixed $eventName[, array<string|int, mixed> $context = array() ]) : Event
Parameters
$eventName : mixed

Name of the event to dispatch

$context : array<string|int, mixed> = array()

Context of the event

Return values
Event

Returns the created event object

getAllEvents()

Get a list of all of the events emitted from the class

public static getAllEvents() : array<string|int, mixed>
Return values
array<string|int, mixed>

        
On this page

Search results