public function AbstractHasDispatcher::getEventDispatcher

Get the EventDispatcher of the request

Return value

EventDispatcherInterface

Overrides HasDispatcherInterface::getEventDispatcher

1 call to AbstractHasDispatcher::getEventDispatcher()

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;
}