Class FlysystemFileResponse

Heavily based on BinaryFileResponse represents an HTTP response delivering a file.

Symfony\Component\HttpFoundation\Response
Extended by Concrete\Core\Http\Response
Extended by Concrete\Core\Http\FlysystemFileResponse
Namespace: Concrete\Core\Http
Author: Korvin Szanto korvinszanto@gmail.com
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 src/Http/FlysystemFileResponse.php

Methods summary

public
# __construct( Concrete\Flysystem\File $file, Concrete\Flysystem\FilesystemInterface $filesystem, integer $status = 200, array $headers = array(), boolean $public = true, null|string $contentDisposition = null, boolean $autoEtag = false )

Constructor.

public static BinaryFileResponse
# create( SplFileInfo|string $file = null, integer $status = 200, array $headers = array(), boolean $public = true, null|string $contentDisposition = null, boolean $autoEtag = false )
public BinaryFileResponse
# setFile( SplFileInfo|string $file, string $contentDisposition = null, boolean $autoEtag = false )

Sets the file to stream.

public Concrete\Flysystem\File
# getFile( )

Gets the file.

public
# setAutoEtag( )

Automatically sets the ETag header according to the checksum of the file.

public BinaryFileResponse
# setContentDisposition( string $disposition, string $filename = '', string $filenameFallback = '' )

Sets the Content-Disposition header with the given filename.

public
# prepare( Symfony\Component\HttpFoundation\Request $request )
public
# sendContent( )

Sends the file.

public
# setContent( $content )
public false
# getContent( )
public static
# trustXSendfileTypeHeader( )

Trust X-Sendfile-Type header.

Methods inherited from Concrete\Core\Http\Response

send()

Properties summary

protected static boolean $trustXSendfileTypeHeader
# false
protected $file
#
protected $filesystem
#
protected $offset
#
protected $maxlen
#