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

            return $actionName . 'Action';
        }

        return $this->configuration->getDefaultAction() . 'Action';
    }
private function resolveAction(): string
    {
        if (!empty($this->routeParams[1])) {
            $actionName = lcfirst(implode('', array_map('ucfirst', explode('-', $this->routeParams[1]))));

            return $actionName . 'Action';
        }

        return $this->configuration->getDefaultAction() . 'Action';
    }
private function resolveAction ( ) : string { if ( ! empty ( $ this -> routeParams [ 1 ] ) ) { $ actionName = lcfirst ( implode ( '' , array_map ( 'ucfirst' , explode ( '-' , $ this -> routeParams [ 1 ] ) ) ) ) ; return $ actionName . 'Action' ; } return $ this -> configuration -> getDefaultAction ( ) . 'Action' ; }
Resolves action depending on route parameter

@return string
Resolves action depending on route parameter