소스 검색

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