public function download($path, $name = null)
    {
        $fResponse = new FileResponse($path);
        return $fResponse->forceDownload($name);
    }
public function download($path, $name = null)
    {
        $fResponse = new FileResponse($path);
        return $fResponse->forceDownload($name);
    }
public function download ( $ path , $ name = null ) { $ fResponse = new FileResponse ( $ path ) ; return $ fResponse -> forceDownload ( $ name ) ; }
Force download of file
@param string $path
@param null $name
@return FileResponse
@throws \Exception
Force download of file