Symfony\Component\HttpFoundation\BinaryFileResponse::setFile
Sets the file to stream.
Signature
public function setFile(SplFileInfo|string
$file,
[string
$contentDisposition = null,
[Boolean
$autoEtag = false,
[Boolean
$autoLastModified = true]]] )
Parameters
$file
— object- The file to stream
$contentDisposition
— string$autoEtag
— object
$autoLastModified
— object
Returns
- BinaryFileResponse