RestoreFromUpload
in package
Use case for restoring database from uploaded file.
Tags
Table of Contents
Properties
Methods
- __construct() : mixed
- Constructor.
- execute() : array{success: bool, error: ?string}
- Execute the use case.
Properties
$repository
private
BackupRepositoryInterface
$repository
Methods
__construct()
Constructor.
public
__construct(BackupRepositoryInterface $repository) : mixed
Parameters
- $repository : BackupRepositoryInterface
-
Backup repository
execute()
Execute the use case.
public
execute(array{name: string, type: string, tmp_name: string, error: int, size: int}|null $fileData) : array{success: bool, error: ?string}
Parameters
- $fileData : array{name: string, type: string, tmp_name: string, error: int, size: int}|null
-
Validated file data from InputValidator::getUploadedFile()