|
@@ -121,7 +121,7 @@ abstract class AnnotationClassLoader implements LoaderInterface
|
|
|
$options = array_merge($globals['options'], $annot->getOptions());
|
|
|
|
|
|
$route = new Route($globals['pattern'].$annot->getPattern(), $defaults, $requirements, $options);
|
|
|
- $collection->addRoute($annot->getName(), $route);
|
|
|
+ $collection->add($annot->getName(), $route);
|
|
|
}
|
|
|
}
|
|
|
|