Holds an event dispatcher
Expanded class hierarchy of HasDispatcherInterface
All classes that implement HasDispatcherInterface
interface HasDispatcherInterface {
/**
* Get a list of all of the events emitted from the class
*
* @return array
*/
public static function getAllEvents();
/**
* Set the EventDispatcher of the request
*
* @param EventDispatcherInterface $eventDispatcher
*
* @return HasDispatcherInterface
*/
public function setEventDispatcher(EventDispatcherInterface $eventDispatcher);
/**
* Get the EventDispatcher of the request
*
* @return EventDispatcherInterface
*/
public function getEventDispatcher();
/**
* Helper to dispatch Guzzle events and set the event name on the event
*
* @param string $eventName Name of the event to dispatch
* @param array $context Context of the event
*/
public function dispatch($eventName, array $context = array());
/**
* Add an event subscriber to the dispatcher
*
* @param EventSubscriberInterface $subscriber Event subscriber
*
* @return AbstractHasDispatcher
*/
public function addSubscriber(EventSubscriberInterface $subscriber);
}
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
HasDispatcherInterface:: |
public | function | Add an event subscriber to the dispatcher | 3 |
HasDispatcherInterface:: |
public | function | Helper to dispatch Guzzle events and set the event name on the event | 3 |
HasDispatcherInterface:: |
public static | function | Get a list of all of the events emitted from the class | 3 |
HasDispatcherInterface:: |
public | function | Get the EventDispatcher of the request | 3 |
HasDispatcherInterface:: |
public | function | Set the EventDispatcher of the request | 3 |