Open Journal Systems  3.3.0
Guzzle\Common\HasDispatcherInterface Interface Reference
Inheritance diagram for Guzzle\Common\HasDispatcherInterface:
Guzzle\Common\AbstractHasDispatcher Guzzle\Http\ClientInterface Guzzle\Http\Curl\CurlMultiInterface Guzzle\Http\IoEmittingEntityBody Guzzle\Http\Message\RequestInterface Guzzle\Service\Resource\ResourceIteratorInterface Guzzle\Http\Client Guzzle\Http\Curl\CurlMulti Guzzle\Http\Curl\CurlMultiProxy Guzzle\Plugin\Backoff\BackoffPlugin Guzzle\Plugin\Mock\MockPlugin Guzzle\Service\Builder\ServiceBuilder Guzzle\Service\Resource\ResourceIterator Guzzle\Service\Resource\ResourceIteratorApplyBatched Guzzle\Http\Client Guzzle\Service\ClientInterface Guzzle\Http\Curl\CurlMulti Guzzle\Http\Curl\CurlMultiProxy Guzzle\Http\Message\EntityEnclosingRequestInterface Guzzle\Http\Message\Request Guzzle\Service\Resource\ResourceIterator

Public Member Functions

 addSubscriber (EventSubscriberInterface $subscriber)
 
 dispatch ($eventName, array $context=array())
 
 getEventDispatcher ()
 
 setEventDispatcher (EventDispatcherInterface $eventDispatcher)
 

Static Public Member Functions

static getAllEvents ()
 

Detailed Description

Holds an event dispatcher

Definition at line 11 of file HasDispatcherInterface.php.

Member Function Documentation

◆ addSubscriber()

Guzzle\Common\HasDispatcherInterface::addSubscriber ( EventSubscriberInterface  $subscriber)

Add an event subscriber to the dispatcher

Parameters
EventSubscriberInterface$subscriberEvent subscriber
Returns
self

Implemented in Guzzle\Http\Message\Request, Guzzle\Http\IoEmittingEntityBody, and Guzzle\Common\AbstractHasDispatcher.

Referenced by Guzzle\Http\Message\RequestFactory\visit_plugins().

◆ dispatch()

Guzzle\Common\HasDispatcherInterface::dispatch (   $eventName,
array  $context = array() 
)

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

Parameters
string$eventNameName of the event to dispatch
array$contextContext of the event
Returns
Event Returns the created event object

Implemented in Guzzle\Http\Message\Request, Guzzle\Http\IoEmittingEntityBody, and Guzzle\Common\AbstractHasDispatcher.

Referenced by Guzzle\Stream\PhpStreamRequestFactory\fromRequest().

◆ getAllEvents()

◆ getEventDispatcher()

◆ setEventDispatcher()

Guzzle\Common\HasDispatcherInterface::setEventDispatcher ( EventDispatcherInterface  $eventDispatcher)

Set the EventDispatcher of the request

Parameters
EventDispatcherInterface$eventDispatcher
Returns
self

Implemented in Guzzle\Http\Message\Request, Guzzle\Http\IoEmittingEntityBody, and Guzzle\Common\AbstractHasDispatcher.


The documentation for this interface was generated from the following file: