public function AbstractHasDispatcher::getEventDispatcher

Get the EventDispatcher of the request

Return value

EventDispatcherInterface

Overrides HasDispatcherInterface::getEventDispatcher

1 call to AbstractHasDispatcher::getEventDispatcher()
Client::prepareRequest in drupal/core/vendor/guzzle/http/Guzzle/Http/Client.php
Prepare a request to be sent from the Client by adding client specific behaviors and properties to the request.

File

drupal/core/vendor/guzzle/common/Guzzle/Common/AbstractHasDispatcher.php, line 40

Class

AbstractHasDispatcher
Class that holds an event dispatcher

Namespace

Guzzle\Common

Code

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