PHP Class CRUDlex\StreamedFileResponse

显示文件 Open project: philiplb/crudlex Class Usage Examples

Public Methods

Method Description
getStreamedFileFunction ( string $file ) : Closure Generates a lambda which is streaming the given file to standard output.

Method Details

getStreamedFileFunction() public method

Generates a lambda which is streaming the given file to standard output.
public getStreamedFileFunction ( string $file ) : Closure
$file string the filename to stream
return Closure the generated lambda