public function __construct(RuntimeContainerInterface $runtime, ChannelInterface $channel, $context, SystemInterface $system, FilesystemInterface $fs)
{
$this->runtime = $runtime;
$this->channel = $channel;
$this->system = $system;
$this->fs = $fs;
$this->context = $context;
$this->scriptRoot = $runtime->getCore()->getDataPath() . '/autorun';
$this->fsPath = $runtime->getCore()->getDataDir() . '/storage/process/' . $runtime->getAlias() . '/manager/processes.json';
$this->processes = [];
try {
$this->processes = $this->selectFromStorage();
} catch (Error $ex) {
throw new InstantiationException('ProcessManagerBase could not be initialized.', $ex);
} catch (Exception $ex) {
throw new InstantiationException('ProcessManagerBase could not be initialized.', $ex);
}
}