public function IoEmittingEntityBody::write

@codeCoverageIgnore

Overrides AbstractEntityBodyDecorator::write

File

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

Class

IoEmittingEntityBody
EntityBody decorator that emits events for read and write methods

Namespace

Guzzle\Http

Code

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