Gets the default route name for a class method.
\ReflectionClass $class:
\ReflectionMethod $method:
string
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;
}