Open Journal Systems
3.3.0
|
Public Member Functions | |
addSubscriber (EventSubscriberInterface $subscriber) | |
dispatch ($eventName, array $context=array()) | |
getEventDispatcher () | |
setEventDispatcher (EventDispatcherInterface $eventDispatcher) | |
Static Public Member Functions | |
static | getAllEvents () |
Holds an event dispatcher
Definition at line 11 of file HasDispatcherInterface.php.
Guzzle\Common\HasDispatcherInterface::addSubscriber | ( | EventSubscriberInterface | $subscriber | ) |
Add an event subscriber to the dispatcher
EventSubscriberInterface | $subscriber | Event subscriber |
Implemented in Guzzle\Http\Message\Request, Guzzle\Http\IoEmittingEntityBody, and Guzzle\Common\AbstractHasDispatcher.
Referenced by Guzzle\Http\Message\RequestFactory\visit_plugins().
Guzzle\Common\HasDispatcherInterface::dispatch | ( | $eventName, | |
array | $context = array() |
||
) |
Helper to dispatch Guzzle events and set the event name on the event
string | $eventName | Name of the event to dispatch |
array | $context | Context of the event |
Implemented in Guzzle\Http\Message\Request, Guzzle\Http\IoEmittingEntityBody, and Guzzle\Common\AbstractHasDispatcher.
Referenced by Guzzle\Stream\PhpStreamRequestFactory\fromRequest().
|
static |
Get a list of all of the events emitted from the class
Implemented in Guzzle\Http\Message\Request, Guzzle\Http\Client, Guzzle\Service\Resource\ResourceIterator, Guzzle\Service\Builder\ServiceBuilder, Guzzle\Plugin\Mock\MockPlugin, Guzzle\Service\Client, Guzzle\Plugin\Backoff\BackoffPlugin, Guzzle\Service\Resource\ResourceIteratorApplyBatched, Guzzle\Http\IoEmittingEntityBody, and Guzzle\Common\AbstractHasDispatcher.
Guzzle\Common\HasDispatcherInterface::getEventDispatcher | ( | ) |
Get the EventDispatcher of the request
Implemented in Guzzle\Http\Message\Request, Guzzle\Http\IoEmittingEntityBody, and Guzzle\Common\AbstractHasDispatcher.
Referenced by Guzzle\Http\Message\RequestFactory\cloneRequestWithMethod(), Guzzle\Plugin\Mock\MockPlugin\dequeue(), Guzzle\Tests\GuzzleTestCase\getWildcardObserver(), Guzzle\Tests\GuzzleTestCase\hasSubscriber(), Guzzle\Http\RedirectPlugin\throwTooManyRedirectsException(), Guzzle\Tests\Http\Curl\CurlHandleTest\updateForHandle(), Guzzle\Http\Message\RequestFactory\visit_events(), and Guzzle\Http\Message\RequestFactory\visit_exceptions().
Guzzle\Common\HasDispatcherInterface::setEventDispatcher | ( | EventDispatcherInterface | $eventDispatcher | ) |
Set the EventDispatcher of the request
EventDispatcherInterface | $eventDispatcher |
Implemented in Guzzle\Http\Message\Request, Guzzle\Http\IoEmittingEntityBody, and Guzzle\Common\AbstractHasDispatcher.