浏览代码

[Routing] fixed annotation dir loader auto-reload when a controller class changes

Fabien Potencier 14 年之前
父节点
当前提交
3948c2d8a2
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      src/Symfony/Component/Routing/Loader/AnnotationDirectoryLoader.php

+ 1 - 0
src/Symfony/Component/Routing/Loader/AnnotationDirectoryLoader.php

@@ -42,6 +42,7 @@ class AnnotationDirectoryLoader extends AnnotationFileLoader
             }
 
             if ($class = $this->findClass($file)) {
+                $collection->addResource(new FileResource($file));
                 $collection->addCollection($this->loader->load($class, $type));
             }
         }