Class BinaryFileResponse
BinaryFileResponse represents an HTTP response delivering a file.
- Symfony\Component\HttpFoundation\Response
-
Symfony\Component\HttpFoundation\BinaryFileResponse
Namespace: Symfony\Component\HttpFoundation
Author: Niklas Fiekas niklas.fiekas@tu-clausthal.de
Author: stealth35 stealth35-php@live.fr
Author: Igor Wiedler igor@wiedler.ch
Author: Jordan Alliot jordan.alliot@gmail.com
Author: Sergey Linnik linniksa@gmail.com
Located at BinaryFileResponse.php
Author: Niklas Fiekas niklas.fiekas@tu-clausthal.de
Author: stealth35 stealth35-php@live.fr
Author: Igor Wiedler igor@wiedler.ch
Author: Jordan Alliot jordan.alliot@gmail.com
Author: Sergey Linnik linniksa@gmail.com
Located at BinaryFileResponse.php
public
|
#
__construct(
Constructor. |
public static
|
#
create(
|
public
|
#
setFile(
Sets the file to stream. |
public
|
|
public
|
#
setAutoLastModified( )
Automatically sets the Last-Modified header according the file modification date. |
public
|
|
public
|
#
setContentDisposition( string $disposition, string $filename = '', string $filenameFallback = '' )
Sets the Content-Disposition header with the given filename. |
public
|
#
prepare(
Prepares the Response before it is sent to the client. |
public
|
|
public
|
|
public
false
|
|
public static
|
|
public
|
#
deleteFileAfterSend( boolean $shouldDelete )
If this is set to true, the file will be unlinked after the request is send Note: If the X-Sendfile header is used, the deleteFileAfterSend setting will not be used. |
protected static
boolean
|
$trustXSendfileTypeHeader
|
#
false
|
protected
|
$file
|
|
protected
|
$offset
|
|
protected
|
$maxlen
|
|
protected
boolean
|
$deleteFileAfterSend
|
#
false
|
$charset,
$content,
$headers,
$statusCode,
$statusText,
$statusTexts,
$version
|