public function AbstractHasDispatcher::addSubscriber

Add an event subscriber to the dispatcher

Parameters

EventSubscriberInterface $subscriber Event subscriber:

Return value

AbstractHasDispatcher

Overrides HasDispatcherInterface::addSubscriber

1 call to AbstractHasDispatcher::addSubscriber()
Client::__construct in drupal/core/vendor/guzzle/http/Guzzle/Http/Client.php
Client constructor

File

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

Class

AbstractHasDispatcher
Class that holds an event dispatcher

Namespace

Guzzle\Common

Code

public function addSubscriber(EventSubscriberInterface $subscriber) {
  $this
    ->getEventDispatcher()
    ->addSubscriber($subscriber);
  return $this;
}