protected function getDefaultRouteName(\ReflectionClass $class, \ReflectionMethod $method)
    {
        $routeName = parent::getDefaultRouteName($class, $method);

        return preg_replace(array(
            '/(module_|controller_?)/',
            '/__/'
        ), array(
            '_',
            '_'
        ), $routeName);
    }
protected function getDefaultRouteName(\ReflectionClass $class, \ReflectionMethod $method)
    {
        $routeName = parent::getDefaultRouteName($class, $method);

        return preg_replace(array(
            '/(module_|controller_?)/',
            '/__/'
        ), array(
            '_',
            '_'
        ), $routeName);
    }
protected function getDefaultRouteName ( \ ReflectionClass $ class , \ ReflectionMethod $ method ) { $ routeName = parent :: getDefaultRouteName ( $ class , $ method ) ; return preg_replace ( array ( '/(module_|controller_?)/' , '/__/' ) , array ( '_' , '_' ) , $ routeName ) ; }
Makes the default route name more sane by removing common keywords.

@param  \ReflectionClass $class A ReflectionClass instance
@param  \ReflectionMethod $method A ReflectionMethod instance
@return string
Makes the default route name more sane by removing common keywords .