public function BinaryFileResponse::setContent in Zircon Profile 8
Same name and namespace in other branches
- 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\HttpFoundationCode
public function setContent($content) {
if (null !== $content) {
throw new \LogicException('The content cannot be set on a BinaryFileResponse instance.');
}
}