public function IoEmittingEntityBody::read

@codeCoverageIgnore

Overrides AbstractEntityBodyDecorator::read

File

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

Class

IoEmittingEntityBody
EntityBody decorator that emits events for read and write methods

Namespace

Guzzle\Http

Code

public function read($length) {
  $event = array(
    'body' => $this,
    'length' => $length,
    'read' => $this->body
      ->read($length),
  );
  $this
    ->dispatch('body.read', $event);
  return $event['read'];
}