src/Core/Router.php
public function getRouter()
    {
        $rs = $this->getUriRequest('', $url_config);
        if (!empty($rs)) {
            $request = $this->parseRequestString($rs, $url_config);
            $closure = $this->delegate->getClosureContainer();
            if ($closure->has('router')) {
                $closure->run('router', array($request, $this));
            }

            if (empty($this->controller) || empty($this->action)) {
                $this->parseRouter($request, $url_config);
            }
        } else {
            $router = $this->parseDefaultRouter($url_config['*']);
            $this->setController($router[0]);
            $this->setAction($router[1]);

            $params = $this->parseParams(array(), $url_config);
            $this->setParams($params);
        }

        return $this;
    }
public function getRouter()
    {
        $rs = $this->getUriRequest('', $url_config);
        if (!empty($rs)) {
            $request = $this->parseRequestString($rs, $url_config);
            $closure = $this->delegate->getClosureContainer();
            if ($closure->has('router')) {
                $closure->run('router', array($request, $this));
            }

            if (empty($this->controller) || empty($this->action)) {
                $this->parseRouter($request, $url_config);
            }
        } else {
            $router = $this->parseDefaultRouter($url_config['*']);
            $this->setController($router[0]);
            $this->setAction($router[1]);

            $params = $this->parseParams(array(), $url_config);
            $this->setParams($params);
        }

        return $this;
    }
Router

@return $this
@throws CoreException
@throws FrontException