public __construct ( |
||
$binaryFile | The name of the file to stream | |
$ioService | eZ\Publish\Core\IO\IOServiceInterface | The name of the file to stream |
$status | integer | The response status code |
$headers | array | An array of response headers |
$public | boolean | Files are public by default |
$contentDisposition | null | string | The type of Content-Disposition to set automatically with the filename |
$autoLastModified | boolean | Whether the Last-Modified header should be automatically set |
public function __construct(BinaryFile $binaryFile, IOServiceInterface $ioService, $status = 200, $headers = array(), $public = true, $contentDisposition = null, $autoLastModified = true)
{
$this->ioService = $ioService;
parent::__construct(null, $status, $headers);
$this->setFile($binaryFile, $contentDisposition, $autoLastModified);
if ($public) {
$this->setPublic();
}
}