You are here

public function BinaryFileResponse::setContent in Zircon Profile 8

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

Throws

\LogicException when the content is not null

Overrides Response::setContent

File

vendor/symfony/http-foundation/BinaryFileResponse.php, line 283

Class

BinaryFileResponse
BinaryFileResponse represents an HTTP response delivering a file.

Namespace

Symfony\Component\HttpFoundation

Code

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