protected function tryAssignController(): void
    {
        $method = strtolower($this->request->getMethod());
        if (isset($this->routeMap[$method])) {
            foreach ($this->routeMap[$method] as $route => $config) {
                $actionArgs = [];
                if (preg_match(
                    '#^'.$route.'/?$#u',
                    urldecode($this->request->getUrlPath()),
                    $actionArgs
                )) {
                    AppHelper::getInstance()->setRouteConfig($config);
                    $this->ctrlName   = $config['ctrl'][0];
                    $this->actionName = $config['ctrl'][1];
                    unset($actionArgs[0]);
                    $this->actionArgs = array_values($actionArgs);
                    break;
                }
            }
        }
    }
protected function tryAssignController(): void
    {
        $method = strtolower($this->request->getMethod());
        if (isset($this->routeMap[$method])) {
            foreach ($this->routeMap[$method] as $route => $config) {
                $actionArgs = [];
                if (preg_match(
                    '#^'.$route.'/?$#u',
                    urldecode($this->request->getUrlPath()),
                    $actionArgs
                )) {
                    AppHelper::getInstance()->setRouteConfig($config);
                    $this->ctrlName   = $config['ctrl'][0];
                    $this->actionName = $config['ctrl'][1];
                    unset($actionArgs[0]);
                    $this->actionArgs = array_values($actionArgs);
                    break;
                }
            }
        }
    }
{@inheritdoc}