Exemple #1
0
 /**
  * {@inheritdoc}
  */
 public function withBody(StreamInterface $body)
 {
     return new static($this->wrapped->withBody($body));
 }
 /**
  * Proxy to ServerRequestInterface::withBody()
  *
  * {@inheritdoc}
  */
 public function withBody(StreamInterface $body)
 {
     $new = $this->psrRequest->withBody($body);
     return new self($new, $this->originalRequest);
 }
Exemple #3
0
 /**
  * {@inheritDoc}
  */
 public function withBody(StreamInterface $body)
 {
     return new self($this->app, $this->psrRequest->withBody($body));
 }
Exemple #4
0
 /**
  * @inheritDoc
  */
 public function withBody(StreamInterface $body)
 {
     $self = clone $this;
     $self->serverRequest = $this->serverRequest->withBody($body);
     return $self;
 }