Kraken\Root\Console\Server\Boot\ServerBoot::boot PHP Method

boot() public method

public boot ( string $path ) : Kraken\Runtime\RuntimeContainerInterface
$path string
return Kraken\Runtime\RuntimeContainerInterface
    public function boot($path)
    {
        $datapath = realpath($path);
        $core = (require $datapath . '/bootstrap/Console/Server/bootstrap.php');
        $controller = (new ReflectionClass(StringSupport::parametrize($this->controllerClass, $this->params)))->newInstanceArgs(array_merge($this->controllerParams));
        $controller->setCore($core);
        $core->config($controller->internalConfig($core));
        $controller->internalBoot($core);
        $core->boot();
        $controller->getLoop()->setFlowController($this->runtimeController);
        $controller->internalConstruct($core);
        return $controller;
    }