src/Leevel/Router/ResponseFactory.php
public function file($file, int $status = 200, array $headers = [], bool $autoEtag = false, bool $autoLastModified = true): FileResponse
    {
        return new FileResponse($file, $status, $headers, ResponseHeaderBag::DISPOSITION_INLINE, $autoEtag, $autoLastModified);
    }
public function file($file, int $status = 200, array $headers = [], bool $autoEtag = false, bool $autoLastModified = true): FileResponse
    {
        return new FileResponse($file, $status, $headers, ResponseHeaderBag::DISPOSITION_INLINE, $autoEtag, $autoLastModified);
    }
返回文件响应.

@param \SplFileInfo|\SplFileObject|string $file
@param int                                $status
@param array                              $headers
@param bool                               $autoEtag
@param bool                               $autoLastModified

@return \Leevel\Http\FileResponse