public function binaryFile($file, $status = 200, array $headers = [], $public = true, $contentDisposition = null, $autoEtag = false, $autoLastModified = true)
    {
        return new BinaryFileResponse($file, $status, $headers, $public, $contentDisposition, $autoEtag, $autoLastModified);
    }
public function binaryFile($file, $status = 200, array $headers = [], $public = true, $contentDisposition = null, $autoEtag = false, $autoLastModified = true)
    {
        return new BinaryFileResponse($file, $status, $headers, $public, $contentDisposition, $autoEtag, $autoLastModified);
    }
public function binaryFile ( $ file , $ status = 200 , array $ headers = [ ] , $ public = true , $ contentDisposition = null , $ autoEtag = false , $ autoLastModified = true ) { return new BinaryFileResponse ( $ file , $ status , $ headers , $ public , $ contentDisposition , $ autoEtag , $ autoLastModified ) ; }
Create a new BinaryFileResponse

@param \SplFileInfo|string $file               The file to stream
@param int                 $status             The response status code
@param array               $headers            An array of response headers
@param bool                $public             Files are public by default
@param null|string         $contentDisposition The type of Content-Disposition to set automatically with the filename
@param bool                $autoEtag           Whether the ETag header should be automatically set
@param bool                $autoLastModified   Whether the Last-Modified header should be automatically set
Create a new BinaryFileResponse