App.php
public function run($namespace)
    {
        $this->namespace = $namespace;
        $this->_initRegister();

        date_default_timezone_set($this->config['timezone']);

        if (false === IS_CLI) {
            $this->route = Route::instance()->init();
            $this->controller = Controller::create($this->route);
        }
    }
public function run($namespace)
    {
        $this->namespace = $namespace;
        $this->_initRegister();

        date_default_timezone_set($this->config['timezone']);

        if (false === IS_CLI) {
            $this->route = Route::instance()->init();
            $this->controller = Controller::create($this->route);
        }
    }
start the app