public function getUrl(
        $module = self::DEFAULT_MODULE,
        $controller = self::DEFAULT_CONTROLLER,
        array $params = []
    ): string {
        $module = $module ?? Request::getModule();
        $controller = $controller ?? Request::getController();

        if (isset($this->reverse[$module], $this->reverse[$module][$controller])) {
            return $this->urlCustom($module, $controller, $params);
        }

        return $this->urlRoute($module, $controller, $params);
    }
public function getUrl(
        $module = self::DEFAULT_MODULE,
        $controller = self::DEFAULT_CONTROLLER,
        array $params = []
    ): string {
        $module = $module ?? Request::getModule();
        $controller = $controller ?? Request::getController();

        if (isset($this->reverse[$module], $this->reverse[$module][$controller])) {
            return $this->urlCustom($module, $controller, $params);
        }

        return $this->urlRoute($module, $controller, $params);
    }
public function getUrl ( $ module = self :: DEFAULT_MODULE , $ controller = self :: DEFAULT_CONTROLLER , array $ params = [ ] ) : string { $ module = $ module ?? Request :: getModule ( ) ; $ controller = $ controller ?? Request :: getController ( ) ; if ( isset ( $ this -> reverse [ $ module ] , $ this -> reverse [ $ module ] [ $ controller ] ) ) { return $ this -> urlCustom ( $ module , $ controller , $ params ) ; } return $ this -> urlRoute ( $ module , $ controller , $ params ) ; }
Build URL to controller

@param  string $module
@param  string $controller
@param  array  $params

@return string
Build URL to controller