protected function processCustom(): bool
    {
        $uri = '/' . $this->getCleanUri();
        foreach ($this->routers as $router) {
            if (preg_match($router['pattern'], $uri, $matches)) {
                $this->setParam('_module', $router['module']);
                $this->setParam('_controller', $router['controller']);

                foreach ($router['params'] as $param => $type) {
                    if (isset($matches[$param])) {
                        $this->setParam($param, $matches[$param]);
                    }
                }
                return true;
            }
        }
        return false;
    }
protected function processCustom(): bool
    {
        $uri = '/' . $this->getCleanUri();
        foreach ($this->routers as $router) {
            if (preg_match($router['pattern'], $uri, $matches)) {
                $this->setParam('_module', $router['module']);
                $this->setParam('_controller', $router['controller']);

                foreach ($router['params'] as $param => $type) {
                    if (isset($matches[$param])) {
                        $this->setParam($param, $matches[$param]);
                    }
                }
                return true;
            }
        }
        return false;
    }
protected function processCustom ( ) : bool { $ uri = '/' . $ this -> getCleanUri ( ) ; foreach ( $ this -> routers as $ router ) { if ( preg_match ( $ router [ 'pattern' ] , $ uri , $ matches ) ) { $ this -> setParam ( '_module' , $ router [ 'module' ] ) ; $ this -> setParam ( '_controller' , $ router [ 'controller' ] ) ; foreach ( $ router [ 'params' ] as $ param => $ type ) { if ( isset ( $ matches [ $ param ] ) ) { $ this -> setParam ( $ param , $ matches [ $ param ] ) ; } } return true ; } } return false ; }
Process custom router

@return bool
Process custom router