From 713e8c26a6fcbb96054397d3ee6a2c3866236003 Mon Sep 17 00:00:00 2001 From: Artur Kotyrba Date: Mon, 25 Apr 2011 15:45:53 +0200 Subject: [PATCH] [Routing] removed redundant parameter in addRoute method --- .../Component/Routing/Loader/AnnotationClassLoader.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Symfony/Component/Routing/Loader/AnnotationClassLoader.php b/src/Symfony/Component/Routing/Loader/AnnotationClassLoader.php index ffeca17ec08e..73cff36d13c9 100644 --- a/src/Symfony/Component/Routing/Loader/AnnotationClassLoader.php +++ b/src/Symfony/Component/Routing/Loader/AnnotationClassLoader.php @@ -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));