Sfoglia il codice sorgente

fixed a bug that prevented cache invalidation

Johannes M. Schmitt 14 anni fa
parent
commit
aa02258112
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  1. 2 0
      Metadata/Driver/AnnotationDriver.php

+ 2 - 0
Metadata/Driver/AnnotationDriver.php

@@ -42,6 +42,8 @@ class AnnotationDriver implements DriverInterface
     public function loadMetadataForClass(\ReflectionClass $class)
     {
         $classMetadata = new ClassMetadata($name = $class->getName());
+        $classMetadata->fileResources[] = $class->getFilename();
+
         foreach ($this->reader->getClassAnnotations($class) as $annot) {
             if ($annot instanceof ExclusionPolicy) {
                 $classMetadata->exclusionPolicy = $annot->policy;