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