Kraken\Console\Server\Manager\ProjectManager::__construct PHP Метод

__construct() публичный Метод

public __construct ( Kraken\Runtime\RuntimeContainerInterface $runtime, Kraken\Channel\ChannelInterface $channel, Kraken\Util\System\SystemInterface $system, Kraken\Filesystem\FilesystemInterface $fs )
$runtime Kraken\Runtime\RuntimeContainerInterface
$channel Kraken\Channel\ChannelInterface
$system Kraken\Util\System\SystemInterface
$fs Kraken\Filesystem\FilesystemInterface
    public function __construct(RuntimeContainerInterface $runtime, ChannelInterface $channel, SystemInterface $system, FilesystemInterface $fs)
    {
        $this->runtime = $runtime;
        $this->channel = $channel;
        $this->system = $system;
        $this->fs = $fs;
        $core = $runtime->getCore();
        $this->scriptRoot = $core->getDataPath() . '/autorun';
        $this->fsPath = $core->getDataDir() . '/storage/project/project.json';
        $this->projectRoot = 'Main';
        $this->projectName = 'Main';
        $this->data = $this->getEmptyStorage();
        try {
            $this->data = $this->selectFromStorage();
        } catch (Error $ex) {
            throw new InstantiationException('ProjectManager could not be initialized.', $ex);
        } catch (Exception $ex) {
            throw new InstantiationException('ProjectManager could not be initialized.', $ex);
        }
    }