src/Console/CommandLoader.php
public static function inverseTranslate(string $className): string
    {
        // remove the suffix 'Command', then lower case the first letter
        $className = \lcfirst(static::clearSuffix($className));

        return \strtolower(
            \preg_replace('/([A-Z])/', ':\1', $className)
        );
    }
public static function inverseTranslate(string $className): string
    {
        // remove the suffix 'Command', then lower case the first letter
        $className = \lcfirst(static::clearSuffix($className));

        return \strtolower(
            \preg_replace('/([A-Z])/', ':\1', $className)
        );
    }
public static function inverseTranslate ( string $ className ) : string { // remove the suffix 'Command', then lower case the first letter $ className = \ lcfirst ( static :: clearSuffix ( $ className ) ) ; return \ strtolower ( \ preg_replace ( '/([A-Z])/' , ':\1' , $ className ) ) ; }
Translate class name to command name

This method is inverse of self::translate()

HelpCommand => help
SuchALongCommand => such:a:long

@param string $className class name.

@return string translated command name.
Translate class name to command name