Browse Source

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

Fabien Potencier 14 years ago
parent
commit
3948c2d8a2

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