Interface Guzzle\Common\HasDispatcherInterface

Implemented byGuzzle\Common\AbstractHasDispatcher, Guzzle\Http\Client, Guzzle\Http\ClientInterface, Guzzle\Http\Curl\CurlMulti, Guzzle\Http\Curl\CurlMultiInterface, Guzzle\Http\Curl\CurlMultiProxy, Guzzle\Http\IoEmittingEntityBody, Guzzle\Http\Message\RequestInterface, Guzzle\Plugin\Backoff\BackoffPlugin, Guzzle\Plugin\Mock\MockPlugin, Guzzle\Service\Builder\ServiceBuilder, Guzzle\Service\Client, Guzzle\Service\Resource\ResourceIterator, Guzzle\Service\Resource\ResourceIteratorApplyBatched, Guzzle\Service\Resource\ResourceIteratorInterface

Holds an event dispatcher

Public Methods

Hide inherited methods

MethodDescriptionDefined By
addSubscriber() Add an event subscriber to the dispatcher Guzzle\Common\HasDispatcherInterface
dispatch() Helper to dispatch Guzzle events and set the event name on the event Guzzle\Common\HasDispatcherInterface
getAllEvents() Get a list of all of the events emitted from the class Guzzle\Common\HasDispatcherInterface
getEventDispatcher() Get the EventDispatcher of the request Guzzle\Common\HasDispatcherInterface
setEventDispatcher() Set the EventDispatcher of the request Guzzle\Common\HasDispatcherInterface

Method Details

addSubscriber() public abstract method

Add an event subscriber to the dispatcher

public abstract self addSubscriber ( Symfony\Component\EventDispatcher\EventSubscriberInterface $subscriber )
$subscriber Symfony\Component\EventDispatcher\EventSubscriberInterface

Event subscriber

dispatch() public abstract method

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

public abstract Guzzle\Common\Event dispatch ( $eventName, array $context = [] )
$eventName string

Name of the event to dispatch

$context array

Context of the event

return Guzzle\Common\Event

Returns the created event object

getAllEvents() public abstract static method

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

public abstract static array getAllEvents ( )
getEventDispatcher() public abstract method

Get the EventDispatcher of the request

public abstract Symfony\Component\EventDispatcher\EventDispatcherInterface getEventDispatcher ( )
setEventDispatcher() public abstract method

Set the EventDispatcher of the request

public abstract self setEventDispatcher ( Symfony\Component\EventDispatcher\EventDispatcherInterface $eventDispatcher )
$eventDispatcher Symfony\Component\EventDispatcher\EventDispatcherInterface