controller
class controller
Generic controller for storage
Properties
protected service | $cache | ||
protected driver_interface | $db | ||
protected extension_guesser | $extension_guesser | ||
protected storage | $storage | ||
protected Request | $symfony_request |
Methods
__construct(service $cache, driver_interface $db, extension_guesser $extension_guesser, storage $storage, Request $symfony_request)
Constructor
Response
handle(string $file)
Handler
bool
is_allowed(string $file)
If the user is allowed to download the file
bool
file_exists(string $file)
Check if file exists
void
prepare(StreamedResponse $response, string $file)
Prepare response
void
file_gc()
Garbage Collection
Details
at line 54
__construct(service $cache, driver_interface $db, extension_guesser $extension_guesser, storage $storage, Request $symfony_request)
Constructor
at line 73
Response
handle(string $file)
Handler
at line 104
protected bool
is_allowed(string $file)
If the user is allowed to download the file
at line 116
protected bool
file_exists(string $file)
Check if file exists
at line 130
protected void
prepare(StreamedResponse $response, string $file)
Prepare response
at line 186
protected void
file_gc()
Garbage Collection