interface HasDispatcherInterface

Holds an event dispatcher

Hierarchy

Expanded class hierarchy of HasDispatcherInterface

All classes that implement HasDispatcherInterface

4 files declare their use of HasDispatcherInterface
ClientInterface.php in drupal/core/vendor/guzzle/http/Guzzle/Http/ClientInterface.php
CurlMultiInterface.php in drupal/core/vendor/guzzle/http/Guzzle/Http/Curl/CurlMultiInterface.php
IoEmittingEntityBody.php in drupal/core/vendor/guzzle/http/Guzzle/Http/IoEmittingEntityBody.php
RequestInterface.php in drupal/core/vendor/guzzle/http/Guzzle/Http/Message/RequestInterface.php

File

drupal/core/vendor/guzzle/common/Guzzle/Common/HasDispatcherInterface.php, line 11

Namespace

Guzzle\Common
View source
interface HasDispatcherInterface {

  /**
   * Get a list of all of the events emitted from the class
   *
   * @return array
   */
  public static function getAllEvents();

  /**
   * Set the EventDispatcher of the request
   *
   * @param EventDispatcherInterface $eventDispatcher
   *
   * @return HasDispatcherInterface
   */
  public function setEventDispatcher(EventDispatcherInterface $eventDispatcher);

  /**
   * Get the EventDispatcher of the request
   *
   * @return EventDispatcherInterface
   */
  public function getEventDispatcher();

  /**
   * Helper to dispatch Guzzle events and set the event name on the event
   *
   * @param string $eventName Name of the event to dispatch
   * @param array  $context   Context of the event
   */
  public function dispatch($eventName, array $context = array());

  /**
   * Add an event subscriber to the dispatcher
   *
   * @param EventSubscriberInterface $subscriber Event subscriber
   *
   * @return AbstractHasDispatcher
   */
  public function addSubscriber(EventSubscriberInterface $subscriber);

}

Members

Namesort descending Modifiers Type Description Overrides
HasDispatcherInterface::addSubscriber public function Add an event subscriber to the dispatcher 3
HasDispatcherInterface::dispatch public function Helper to dispatch Guzzle events and set the event name on the event 3
HasDispatcherInterface::getAllEvents public static function Get a list of all of the events emitted from the class 3
HasDispatcherInterface::getEventDispatcher public function Get the EventDispatcher of the request 3
HasDispatcherInterface::setEventDispatcher public function Set the EventDispatcher of the request 3