class ResourceManager
Methods
__construct(RequestMapper $mapper, ResourceTeleporter $teleporter, Filesystem $filesystem)
Constructor |
||
ResourceCollection |
handle(String $context, array $request)
Handles an archival request. |
|
cleanup(ResourceCollection $collection)
This method must be called once the ResourceCollection has been processed. |
||
static ResourceManager |
create()
Creates a default ResourceManager |
Details
at line 33
public
__construct(RequestMapper $mapper, ResourceTeleporter $teleporter, Filesystem $filesystem)
Constructor
at line 55
public ResourceCollection
handle(String $context, array $request)
Handles an archival request.
The request is an array of string|streams to compute in a context (current
working directory most of the time)
Some keys can be associative. In these cases, the key is used the target
for the file.
at line 89
public
cleanup(ResourceCollection $collection)
This method must be called once the ResourceCollection has been processed.
It will remove temporary files
at line 105
static public ResourceManager
create()
Creates a default ResourceManager