Kraken\Root\Console\Client\Boot\ClientBoot::boot PHP Method

boot() public method

public boot ( string $path ) : Kraken\Console\Client\ClientInterface
$path string
return Kraken\Console\Client\ClientInterface
    public function boot($path)
    {
        $core = (require realpath($path) . '/bootstrap/Console/Client/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->internalConstruct($core);
        return $controller;
    }