src/AbstractController.php
public static function getMethodFromAction(string $action): string
    {
        $method = str_replace(['.', '-', '_'], ' ', $action);
        $method = ucwords($method);
        $method = str_replace(' ', '', $method);
        $method = lcfirst($method);
        $method .= 'Action';
        return $method;
    }
public static function getMethodFromAction(string $action): string
    {
        $method = str_replace(['.', '-', '_'], ' ', $action);
        $method = ucwords($method);
        $method = str_replace(' ', '', $method);
        $method = lcfirst($method);
        $method .= 'Action';
        return $method;
    }
public static function getMethodFromAction ( string $ action ) : string { $ method = str_replace ( [ '.' , '-' , '_' ] , ' ' , $ action ) ; $ method = ucwords ( $ method ) ; $ method = str_replace ( ' ' , '' , $ method ) ; $ method = lcfirst ( $ method ) ; $ method .= 'Action' ; return $ method ; }
Transform an "action" token into a method name

@param  string $action
@return string
Transform an action token into a method name