框架升级及修复升级后的bug
This commit is contained in:
@@ -12,7 +12,6 @@
|
||||
namespace Symfony\Component\HttpFoundation;
|
||||
|
||||
use Symfony\Component\HttpFoundation\File\Exception\FileException;
|
||||
use Symfony\Component\HttpFoundation\File\Exception\FileNotFoundException;
|
||||
use Symfony\Component\HttpFoundation\File\File;
|
||||
|
||||
/**
|
||||
@@ -50,9 +49,6 @@ class BinaryFileResponse extends Response
|
||||
* @param string|null $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
|
||||
*
|
||||
* @throws FileNotFoundException If the given path is not a file
|
||||
* @throws FileException If the file is not readable
|
||||
*/
|
||||
public function __construct(\SplFileInfo|string $file, int $status = 200, array $headers = [], bool $public = true, ?string $contentDisposition = null, bool $autoEtag = false, bool $autoLastModified = true)
|
||||
{
|
||||
@@ -70,8 +66,7 @@ class BinaryFileResponse extends Response
|
||||
*
|
||||
* @return $this
|
||||
*
|
||||
* @throws FileNotFoundException If the given path is not a file
|
||||
* @throws FileException If the file is not readable
|
||||
* @throws FileException
|
||||
*/
|
||||
public function setFile(\SplFileInfo|string $file, ?string $contentDisposition = null, bool $autoEtag = false, bool $autoLastModified = true): static
|
||||
{
|
||||
@@ -407,12 +402,4 @@ class BinaryFileResponse extends Response
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns whether the file will be unlinked after the request is sent.
|
||||
*/
|
||||
public function shouldDeleteFileAfterSend(): bool
|
||||
{
|
||||
return $this->deleteFileAfterSend;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user