protected static function translatePath($methodName)
    {
        $methodName = preg_replace('/Action$/', '', $methodName);
        return '/'.preg_replace_callback('/[A-Z]/', function ($matches) {
            return '/'.strtolower($matches[0]);
        }, $methodName);
    }
protected static function translatePath($methodName)
    {
        $methodName = preg_replace('/Action$/', '', $methodName);
        return '/'.preg_replace_callback('/[A-Z]/', function ($matches) {
            return '/'.strtolower($matches[0]);
        }, $methodName);
    }
protected static function translatePath ( $ methodName ) { $ methodName = preg_replace ( '/Action$/' , '' , $ methodName ) ; return '/' . preg_replace_callback ( '/[A-Z]/' , function ( $ matches ) { return '/' . strtolower ( $ matches [ 0 ] ) ; } , $ methodName ) ; }
Translate action method name into route path.

Upper case letters will be translated into slash + lower letter, e.g.

pageUpdateAction => /page/update
fooAction => /foo

@return string path
Translate action method name into route path .