You are here

public function StreamedResponse::setContent in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/http-foundation/StreamedResponse.php \Symfony\Component\HttpFoundation\StreamedResponse::setContent()

Throws

\LogicException when the content is not null

Overrides Response::setContent

File

vendor/symfony/http-foundation/StreamedResponse.php, line 103

Class

StreamedResponse
StreamedResponse represents a streamed HTTP response.

Namespace

Symfony\Component\HttpFoundation

Code

public function setContent($content) {
  if (null !== $content) {
    throw new \LogicException('The content cannot be set on a StreamedResponse instance.');
  }
}