コード例 #1
0
 /**
  * Get data.
  *
  * @throws RuntimeException
  *
  * @return string
  */
 public function getData()
 {
     $offset = $this->stream->tell();
     if (!is_int($offset)) {
         throw new RuntimeException('Unable to get profile data');
     }
     $this->stream->seek(0);
     $data = $this->stream->getContents();
     $this->stream->seek($offset);
     return $data;
 }
コード例 #2
0
 public function getContents($maxLength = -1)
 {
     return $this->stream->getContents($maxLength);
 }
コード例 #3
0
ファイル: GuzzleHttpStream.php プロジェクト: lamenath/fbp
 /**
  * {@inheritdoc}
  */
 protected function doGetContents()
 {
     return $this->stream->getContents();
 }
コード例 #4
0
ファイル: PsrStream.php プロジェクト: Air-Craft/air-craft-www
 public function getContents()
 {
     return $this->stream->getContents();
 }