src/Yggdrasil/Core/Routing/Router.php
private function resolveController(): string
    {
        if (!empty($this->routeParams[0])) {
            $controllerName = implode('', array_map('ucfirst', explode('-', $this->routeParams[0])));

            return $this->configuration->getControllerNamespace() . $controllerName . 'Controller';
        }

        return $this->configuration->getControllerNamespace() . $this->configuration->getDefaultController() . 'Controller';
    }
private function resolveController(): string
    {
        if (!empty($this->routeParams[0])) {
            $controllerName = implode('', array_map('ucfirst', explode('-', $this->routeParams[0])));

            return $this->configuration->getControllerNamespace() . $controllerName . 'Controller';
        }

        return $this->configuration->getControllerNamespace() . $this->configuration->getDefaultController() . 'Controller';
    }
private function resolveController ( ) : string { if ( ! empty ( $ this -> routeParams [ 0 ] ) ) { $ controllerName = implode ( '' , array_map ( 'ucfirst' , explode ( '-' , $ this -> routeParams [ 0 ] ) ) ) ; return $ this -> configuration -> getControllerNamespace ( ) . $ controllerName . 'Controller' ; } return $ this -> configuration -> getControllerNamespace ( ) . $ this -> configuration -> getDefaultController ( ) . 'Controller' ; }
Resolves controller depending on route parameter

@return string
Resolves controller depending on route parameter