protected function getDefaultRouteName(\ReflectionClass $class, \ReflectionMethod $method)
    {
        $name = strtolower(str_replace('\\', '_', $class->name).'_'.$method->name);
        if ($this->defaultRouteIndex > 0) {
            $name .= '_'.$this->defaultRouteIndex;
        }
        ++$this->defaultRouteIndex;

        return $name;
    }
protected function getDefaultRouteName(\ReflectionClass $class, \ReflectionMethod $method)
    {
        $name = strtolower(str_replace('\\', '_', $class->name).'_'.$method->name);
        if ($this->defaultRouteIndex > 0) {
            $name .= '_'.$this->defaultRouteIndex;
        }
        ++$this->defaultRouteIndex;

        return $name;
    }
protected function getDefaultRouteName ( \ ReflectionClass $ class , \ ReflectionMethod $ method ) { $ name = strtolower ( str_replace ( '\\' , '_' , $ class -> name ) . '_' . $ method -> name ) ; if ( $ this -> defaultRouteIndex > 0 ) { $ name .= '_' . $ this -> defaultRouteIndex ; } ++ $ this -> defaultRouteIndex ; return $ name ; }
Gets the default route name for a class method.

@param \ReflectionClass  $class
@param \ReflectionMethod $method

@return string
Gets the default route name for a class method .