浏览代码

[Routing] Updating changed method name after method name refactoring.

Ryan Weaver 14 年之前
父节点
当前提交
f0ee10112e
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/Symfony/Component/Routing/Loader/AnnotationClassLoader.php

+ 1 - 1
src/Symfony/Component/Routing/Loader/AnnotationClassLoader.php

@@ -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);
             }
         }