public function importAnnotationFromReflectionMethod(ReflectionMethod $reflMethod)
{
$reader = $this->getAnnotationReader();
$methodAnnotations = $reader->getMethodAnnotations($reflMethod);
$cnt = 0;
foreach ($methodAnnotations as $ma) {
$route = $ma->toRoute();
$route['callback'] = array($reflMethod->class, $reflMethod->name);
$this->routes[] = $this->routeMap[$ma->name] = $route;
$cnt++;
}
return $cnt;
}