public function IoEmittingEntityBody::getEventDispatcher

Get the EventDispatcher of the request

Return value

EventDispatcherInterface

Overrides HasDispatcherInterface::getEventDispatcher

File

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

Class

IoEmittingEntityBody
EntityBody decorator that emits events for read and write methods

Namespace

Guzzle\Http

Code

public function getEventDispatcher() {
  if (!$this->eventDispatcher) {
    $this->eventDispatcher = new EventDispatcher();
  }
  return $this->eventDispatcher;
}