public function HasDispatcherInterface::addSubscriber

Add an event subscriber to the dispatcher

Parameters

EventSubscriberInterface $subscriber Event subscriber:

Return value

AbstractHasDispatcher

3 methods override HasDispatcherInterface::addSubscriber()
AbstractHasDispatcher::addSubscriber in drupal/core/vendor/guzzle/common/Guzzle/Common/AbstractHasDispatcher.php
Add an event subscriber to the dispatcher
IoEmittingEntityBody::addSubscriber in drupal/core/vendor/guzzle/http/Guzzle/Http/IoEmittingEntityBody.php
@codeCoverageIgnore
Request::addSubscriber in drupal/core/vendor/guzzle/http/Guzzle/Http/Message/Request.php
@codeCoverageIgnore

File

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

Class

HasDispatcherInterface
Holds an event dispatcher

Namespace

Guzzle\Common

Code

public function addSubscriber(EventSubscriberInterface $subscriber);