protected function resolveHandlingMethod($commandType)
    {
        // Remove namespace
        $pos = strrpos($commandType, '\\');
        if ($pos !== false) {
            $commandType = substr($commandType, $pos + 1);
        }

        // Remove "Command" suffix
        if (substr($commandType, -7) === 'Command') {
            $commandType = substr($commandType, 0, -7);
        }

        return lcfirst($commandType);
    }
protected function resolveHandlingMethod($commandType)
    {
        // Remove namespace
        $pos = strrpos($commandType, '\\');
        if ($pos !== false) {
            $commandType = substr($commandType, $pos + 1);
        }

        // Remove "Command" suffix
        if (substr($commandType, -7) === 'Command') {
            $commandType = substr($commandType, 0, -7);
        }

        return lcfirst($commandType);
    }
protected function resolveHandlingMethod ( $ commandType ) { // Remove namespace $ pos = strrpos ( $ commandType , '\\' ) ; if ( $ pos !== false ) { $ commandType = substr ( $ commandType , $ pos + 1 ) ; } // Remove "Command" suffix if ( substr ( $ commandType , - 7 ) === 'Command' ) { $ commandType = substr ( $ commandType , 0 , - 7 ) ; } return lcfirst ( $ commandType ) ; }
Derives command handling method name from event type

@param string $commandType
@return string
Derives command handling method name from event type