Skip to content

Commit

Permalink
[Routing] removed redundant parameter in addRoute method
Browse files Browse the repository at this point in the history
  • Loading branch information
udat committed Apr 25, 2011
1 parent 3ab5a51 commit 713e8c2
Showing 1 changed file with 3 additions and 3 deletions.
Expand Up @@ -139,17 +139,17 @@ public function load($class, $type = null)
foreach ($class->getMethods() as $method) {
if ($annots = $this->reader->getMethodAnnotation($method, $this->routesAnnotationClass)) {
foreach ($annots->getRoutes() as $annot) {
$this->addRoute($collection, $annot, $globals, $annot, $class, $method);
$this->addRoute($collection, $annot, $globals, $class, $method);
}
} elseif ($annot = $this->reader->getMethodAnnotation($method, $this->routeAnnotationClass)) {
$this->addRoute($collection, $annot, $globals, $annot, $class, $method);
$this->addRoute($collection, $annot, $globals, $class, $method);
}
}

return $collection;
}

protected function addRoute(RouteCollection $collection, $annot, $globals, $annot, \ReflectionClass $class, \ReflectionMethod $method)
protected function addRoute(RouteCollection $collection, $annot, $globals, \ReflectionClass $class, \ReflectionMethod $method)
{
if (null === $annot->getName()) {
$annot->setName($this->getDefaultRouteName($class, $method));
Expand Down

0 comments on commit 713e8c2

Please sign in to comment.