public function StreamedResponse::setContent

Throws

\LogicException when the content is not null

Overrides Response::setContent

File

drupal/core/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/StreamedResponse.php, line 111

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.');
  }
}