CRUDlex\StreamedFileResponse

class StreamedFileResponse

Small utility class to generate functions for streamed responses returning a file.

getStreamedFileFunction($file)

Generates a lambda which is streaming the given file to standard output.

Parameters:
  • $file (string) – the filename to stream
Returns:

Closure the generated lambda