示例#1
0
 /**
  * @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');
     }
 }