eZ\Bundle\EzPublishIOBundle\BinaryStreamResponse::setAutoLastModified PHP Method

setAutoLastModified() public method

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;
    }