protected function file($path, $contentType = null, $downloadName = null) {
        return new FileResult($path, $contentType, $downloadName);
    }
protected function file($path, $contentType = null, $downloadName = null) {
        return new FileResult($path, $contentType, $downloadName);
    }
protected function file ( $ path , $ contentType = null , $ downloadName = null ) { return new FileResult ( $ path , $ contentType , $ downloadName ) ; }
Creates a FileResult object by using the file contents and file type.

@param string $path The file path to output.
@param string $contentType The content type.
@param string|bool $downloadName the content-disposition header so that a file-download dialog box is displayed in the browser with the specified file name.

@return FileResult
Creates a FileResult object by using the file contents and file type .