blink\core\Application::init PHP Method

init() public method

public init ( )
    public function init()
    {
        if (!$this->root || !file_exists($this->root)) {
            throw new InvalidParamException("The param: 'root' is invalid");
        }
        $this->services = array_merge($this->defaultServices(), $this->services);
        Container::$app = $this;
        Container::$instance = new Container();
    }