Kraken\Runtime\Container\Manager\ProcessManagerBase::__construct PHP Method

__construct() public method

public __construct ( Kraken\Runtime\RuntimeContainerInterface $runtime, Kraken\Channel\ChannelInterface $channel, string[] $context, Kraken\Util\System\SystemInterface $system, Kraken\Filesystem\FilesystemInterface $fs )
$runtime Kraken\Runtime\RuntimeContainerInterface
$channel Kraken\Channel\ChannelInterface
$context string[]
$system Kraken\Util\System\SystemInterface
$fs Kraken\Filesystem\FilesystemInterface
    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);
        }
    }