/** * @param StreamInterface $stream */ protected function body($stream) { if ($stream instanceof Messages\Stream\Implementation) { $stream->rewind(); $this->fpassthru($stream->resource()); } else { $this->output((string) $stream); } }
/** * @param StreamInterface $stream */ protected function body($stream) { if ($stream instanceof Messages\Stream\Implementation) { $stream->rewind(); $this->fpassthru($stream->resource()); } else { $this->output((string) $stream); } }