\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
No private methods found
No private properties found
N/A

Methods

__construct()

__construct(  configDirectory, \App\ConfigModule\Models\CommandManager  commandManager, \App\ConfigModule\Models\JsonSchemaManager  schemaManager) : 

Constructor

Parameters

configDirectory

Path to a directory with a configuration of IQRF Gateway Daemon

\App\ConfigModule\Models\CommandManager commandManager

Command manager

\App\ConfigModule\Models\JsonSchemaManager schemaManager

JSON schema manager

Returns

download()

download() : \App\ConfigModule\Models\FileResponse

Download a configuration

Throws

\App\ConfigModule\Models\BadRequestException

Returns

\App\ConfigModule\Models\FileResponse —

HTTP response with a configuration

upload()

upload(mixed||string|int  formValues) : 

Upload a configuration

Parameters

mixed||string|int formValues

Values from form

Throws

\App\ConfigModule\Models\IncompleteConfigurationException
\App\ConfigModule\Models\InvalidConfigurationFormatException
\App\ConfigModule\Models\JsonException

Returns

validate()

validate(\App\ConfigModule\Models\ZipArchiveManager  zipManager) : 

Validate JSON configuration files for IQRF Gateway Daemon

Parameters

\App\ConfigModule\Models\ZipArchiveManager zipManager

ZIP archive manager

Throws

\App\ConfigModule\Models\JsonException

Returns

Are JSON files valid?