\App\ConfigModule\ModelsMigrationManager

Tool for migrating configuration

Summary

Methods
Properties
Constants
__construct()
download()
upload()
validate()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
changeOwner()
$commandManager
$schemaManager
$zipManagerDownload
$zipManagerUpload
$configDirectory
$path
$serviceManager
N/A

Properties

$commandManager

$commandManager : \App\CoreModule\Models\CommandManager

Type

normal — Command manager

$schemaManager

$schemaManager : \App\ConfigModule\Models\ComponentSchemaManager

Type

normal — JSON schema manager

$zipManagerDownload

$zipManagerDownload : \App\CoreModule\Models\ZipArchiveManager

Type

normal — ZIP archive manager for a downloaded configuration

$zipManagerUpload

$zipManagerUpload : \App\CoreModule\Models\ZipArchiveManager

Type

normal — ZIP archive manager for a uploaded configuration

$configDirectory

$configDirectory : string

Type

normal — Path to a directory with a configuration of IQRF Gateway Daemon

$path

$path : string

Type

normal — Path to ZIP archive

$serviceManager

$serviceManager : \App\ServiceModule\Models\ServiceManager

Type

normal — Service manager

Methods

__construct()

__construct(string  $configDirectory, \App\CoreModule\Models\CommandManager  $commandManager, \App\ConfigModule\Models\ComponentSchemaManager  $schemaManager, \App\ServiceModule\Models\ServiceManager  $serviceManager) : mixed

Constructor

Parameters

string $configDirectory

Path to a directory with a configuration of IQRF Gateway Daemon

\App\CoreModule\Models\CommandManager $commandManager

Command manager

\App\ConfigModule\Models\ComponentSchemaManager $schemaManager

JSON schema manager

\App\ServiceModule\Models\ServiceManager $serviceManager

Service manager

Returns

mixed

download()

download() : \Nette\Application\Responses\FileResponse

Downloads a configuration

Throws

\Nette\Application\BadRequestException

Returns

\Nette\Application\Responses\FileResponse —

HTTP response with a configuration

upload()

upload(array<string,\Nette\Http\FileUpload>  $formValues) : void

Uploads a configuration

Parameters

array $formValues

Values from form

Throws

\App\ConfigModule\Exceptions\IncompleteConfigurationException
\App\ConfigModule\Exceptions\InvalidConfigurationFormatException
\Nette\Utils\JsonException
\App\ServiceModule\Exceptions\UnsupportedInitSystemException

validate()

validate(\App\CoreModule\Models\ZipArchiveManager  $zipManager) : bool

Validates JSON configuration files for IQRF Gateway Daemon

Parameters

\App\CoreModule\Models\ZipArchiveManager $zipManager

ZIP archive manager

Throws

\Nette\Utils\JsonException

Returns

bool —

Are JSON files valid?

changeOwner()

changeOwner() : void

Changes ownership of directory for JSON configuration files of IQRF Gateway Daemon