public function BinaryFileResponse::setContent

Throws

\LogicException when the content is not null

Overrides Response::setContent

File

drupal/core/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/BinaryFileResponse.php, line 256

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