Example #1
0
 /**
  * @inheritdoc
  */
 public function getStream()
 {
     if ($this->stream === null) {
         $this->assertValidUpload();
         $this->stream = $this->messages->stream($this->file);
     }
     return $this->stream;
 }
Example #2
0
 /**
  * @inheritdoc
  */
 protected function requireBody()
 {
     if ($this->body === null) {
         $this->body = $this->messages->stream('php://input');
     }
 }