Open Journal Systems  3.3.0
Guzzle\Common\AbstractHasDispatcher Class Reference
Inheritance diagram for Guzzle\Common\AbstractHasDispatcher:
Guzzle\Common\HasDispatcherInterface 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

Public Member Functions

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

Static Public Member Functions

static getAllEvents ()
 

Protected Attributes

 $eventDispatcher
 

Detailed Description

Class that holds an event dispatcher

Definition at line 12 of file AbstractHasDispatcher.php.

Member Function Documentation

◆ addSubscriber()

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

Add an event subscriber to the dispatcher

Parameters
EventSubscriberInterface$subscriberEvent subscriber
Returns
self

Implements Guzzle\Common\HasDispatcherInterface.

Definition at line 46 of file AbstractHasDispatcher.php.

References Guzzle\Common\AbstractHasDispatcher\getEventDispatcher().

Referenced by Guzzle\Http\Client\__construct().

◆ dispatch()

◆ getAllEvents()

◆ getEventDispatcher()

Guzzle\Common\AbstractHasDispatcher::getEventDispatcher ( )

◆ setEventDispatcher()

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

Set the EventDispatcher of the request

Parameters
EventDispatcherInterface$eventDispatcher
Returns
self

Implements Guzzle\Common\HasDispatcherInterface.

Definition at line 25 of file AbstractHasDispatcher.php.

References Guzzle\Common\AbstractHasDispatcher\$eventDispatcher.

Field Documentation

◆ $eventDispatcher

EventDispatcherInterface Guzzle\Common\AbstractHasDispatcher::$eventDispatcher
protected

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