public function BinaryFileResponse::setAutoLastModified in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/http-foundation/BinaryFileResponse.php \Symfony\Component\HttpFoundation\BinaryFileResponse::setAutoLastModified()
Automatically sets the Last-Modified header according the file modification date.
1 call to BinaryFileResponse::setAutoLastModified()
- BinaryFileResponse::setFile in vendor/
symfony/ http-foundation/ BinaryFileResponse.php - Sets the file to stream.
File
- vendor/
symfony/ http-foundation/ BinaryFileResponse.php, line 129
Class
- BinaryFileResponse
- BinaryFileResponse represents an HTTP response delivering a file.
Namespace
Symfony\Component\HttpFoundationCode
public function setAutoLastModified() {
$this
->setLastModified(\DateTime::createFromFormat('U', $this->file
->getMTime()));
return $this;
}