public function Request::getEventDispatcher

Get the EventDispatcher of the request

Return value

EventDispatcherInterface

Overrides HasDispatcherInterface::getEventDispatcher

File

drupal/core/vendor/guzzle/http/Guzzle/Http/Message/Request.php, line 658

Class

Request
HTTP request class to send requests

Namespace

Guzzle\Http\Message

Code

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