コード例 #1
0
 public function __construct(StreamInterface $stream)
 {
     // Trick to get underlying stream
     $socket = $stream->detach();
     $this->socket = $socket;
     $this->stream = new Stream($socket);
 }
コード例 #2
0
 public function detach()
 {
     $this->stream->detach();
     $this->size = 0;
 }
コード例 #3
0
ファイル: GuzzleHttpStream.php プロジェクト: lamenath/fbp
 /**
  * {@inheritdoc}
  */
 protected function doDetach()
 {
     return $this->stream->detach();
 }