Router.php
function resolve()
    {
        if ($this->method == 'CLI') {
            $route = $this->searchCliRoute();
        } else {
        //first: serach in ALL
            $route = $this->searchRouter($this->all);
        //now: search for access method
            if ($route === false && isset($this->routers[$this->method])) {
                $route = $this->searchRouter($this->routers[$this->method]);
            }
        }
        //not match...
        if ($route === false) {
            $route['controller'] = $route['action'] = $route['params'] = $route['request'] = null;
        }
        //set params
        $this->controller = $route['controller'];
        $this->action = $route['action'];
        $this->params = $route['params'];
        //out with decoded router OR all null
        return $route;
    }
function resolve()
    {
        if ($this->method == 'CLI') {
            $route = $this->searchCliRoute();
        } else {
        //first: serach in ALL
            $route = $this->searchRouter($this->all);
        //now: search for access method
            if ($route === false && isset($this->routers[$this->method])) {
                $route = $this->searchRouter($this->routers[$this->method]);
            }
        }
        //not match...
        if ($route === false) {
            $route['controller'] = $route['action'] = $route['params'] = $route['request'] = null;
        }
        //set params
        $this->controller = $route['controller'];
        $this->action = $route['action'];
        $this->params = $route['params'];
        //out with decoded router OR all null
        return $route;
    }
Resolve routers