public function IoEmittingEntityBody::dispatch

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

Parameters

string $eventName Name of the event to dispatch:

array $context Context of the event:

Overrides HasDispatcherInterface::dispatch

2 calls to IoEmittingEntityBody::dispatch()

File

drupal/core/vendor/guzzle/http/Guzzle/Http/IoEmittingEntityBody.php, line 55

Class

IoEmittingEntityBody
EntityBody decorator that emits events for read and write methods

Namespace

Guzzle\Http

Code

public function dispatch($eventName, array $context = array()) {
  $this
    ->getEventDispatcher()
    ->dispatch($eventName, new Event($context));
}