\App\ConfigModule\ModelsSchedulerMigrationManager

Scheduler configuration migration manager

Summary

Methods
Properties
Constants
__construct()
download()
upload()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
removeOldConfiguration()
$configDirectory
$schemaManager
$serviceManager
N/A

Properties

$configDirectory

$configDirectory : string

Type

normal — Path to a directory with scheduler's configuration

$schemaManager

$schemaManager : \App\ConfigModule\Models\SchedulerSchemaManager

Type

normal — Scheduler JSON schema manager

$serviceManager

$serviceManager : \App\ServiceModule\Models\ServiceManager

Type

normal — Service manager

Methods

__construct()

__construct(\App\ConfigModule\Models\MainManager  $mainManager, \App\ServiceModule\Models\ServiceManager  $serviceManager, \App\ConfigModule\Models\SchedulerSchemaManager  $schemaManager, \App\CoreModule\Models\CommandManager  $commandManager) : mixed

Constructor

Parameters

\App\ConfigModule\Models\MainManager $mainManager

Main configuration manager

\App\ServiceModule\Models\ServiceManager $serviceManager

Service manager

\App\ConfigModule\Models\SchedulerSchemaManager $schemaManager

Scheduler JSON schema manager

\App\CoreModule\Models\CommandManager $commandManager

Command

Returns

mixed

download()

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

Downloads a scheduler's configuration

Throws

\Nette\Application\BadRequestException

Returns

\Nette\Application\Responses\FileResponse —

HTTP response with a scheduler's configuration

upload()

upload(\Nette\Http\FileUpload  $zip) : void

Uploads a configuration

Parameters

\Nette\Http\FileUpload $zip

ZIP archive with scheduler configuration

Throws

\App\ConfigModule\Exceptions\InvalidConfigurationFormatException
\App\ServiceModule\Exceptions\NotSupportedInitSystemException

removeOldConfiguration()

removeOldConfiguration() : void

Removes an old scheduler's configuration