コード例 #1
0
ファイル: UploadedFile.php プロジェクト: phpixie/http
 /**
  * @inheritdoc
  */
 public function getStream()
 {
     if ($this->stream === null) {
         $this->assertValidUpload();
         $this->stream = $this->messages->stream($this->file);
     }
     return $this->stream;
 }
コード例 #2
0
ファイル: SAPI.php プロジェクト: phpixie/http
 /**
  * @inheritdoc
  */
 protected function requireBody()
 {
     if ($this->body === null) {
         $this->body = $this->messages->stream('php://input');
     }
 }