src/Leevel/Http/FileResponse.php
public static function create($file = null, int $status = 200, array $headers = [], ?string $contentDisposition = null, bool $autoEtag = false, bool $autoLastModified = true): IResponse
    {
        return new static($file, $status, $headers, $contentDisposition, $autoEtag, $autoLastModified);
    }
public static function create($file = null, int $status = 200, array $headers = [], ?string $contentDisposition = null, bool $autoEtag = false, bool $autoLastModified = true): IResponse
    {
        return new static($file, $status, $headers, $contentDisposition, $autoEtag, $autoLastModified);
    }
创建一个文件响应.

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

@return static