Documentation

RestoreFromUpload

Use case for restoring database from uploaded file.

Tags
since
3.0.0

Table of Contents

Properties

$repository  : BackupRepositoryInterface

Methods

__construct()  : mixed
Constructor.
execute()  : array{success: bool, error: ?string}
Execute the use case.

Properties

Methods

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()

Return values
array{success: bool, error: ?string}

        
On this page

Search results