public function IoEmittingEntityBody::addSubscriber

@codeCoverageIgnore

Overrides HasDispatcherInterface::addSubscriber

File

drupal/core/vendor/guzzle/http/Guzzle/Http/IoEmittingEntityBody.php, line 64

Class

IoEmittingEntityBody
EntityBody decorator that emits events for read and write methods

Namespace

Guzzle\Http

Code

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