eZ\Bundle\EzPublishIOBundle\BinaryStreamResponse::setAutoLastModified PHP Méthode

setAutoLastModified() public méthode

Automatically sets the Last-Modified header according the file modification date.
public setAutoLastModified ( )
    public function setAutoLastModified()
    {
        $this->setLastModified(DateTime::createFromFormat('U', $this->file->mtime->getTimestamp()));
        return $this;
    }