ArchiveManager
class ArchiveManager
Properties
protected string | $disk | Storage disk for uploaded import archives. |
|
protected string | $tmpPath | Base path to the temporary directory to store extracted imports. |
|
protected array | $importTypes | Class names of available imports. |
Methods
Create a new instance.
Stores an uploaded archive file and returns its token.
Determine if the files of an import with tthe given token exist.
Delete the files of an import.
Delete uploaded import files that are older than one week.
Generates a new token for an import.
Validate the uploaded import archive.
Details
at line 39
__construct()
Create a new instance.
at line 59
string
store(UploadedFile $file)
Stores an uploaded archive file and returns its token.
at line 80
bool
has(string $token)
Determine if the files of an import with tthe given token exist.
at line 92
Import|null
get(string $token)
Get the correct import instance for the import with the given token.
at line 141
delete(string $token)
Delete the files of an import.
at line 151
prune()
Delete uploaded import files that are older than one week.
at line 167
protected string
generateToken()
Generates a new token for an import.
at line 178
protected
validate(string $token)
Validate the uploaded import archive.