Skip to content

Commit 8c937ae

Browse files
committed
bug #16316 [FrameworkBundle] Fix ClassCacheWarme when classes.php is already warmed (tucksaun)
This PR was merged into the 2.8 branch. Discussion ---------- [FrameworkBundle] Fix ClassCacheWarme when classes.php is already warmed | Q | A | ------------- | --- | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | - | License | MIT | Doc PR | - Autoreloading was previously set to `false`, but actually we want to force it. This could even lead to a fatal error when warming where it was already warmed as the previous `classes.php` is directly required. Commits ------- d31350f [FrameworkBundle] Fix ClassCacheWarme when classes.php is already warmed
2 parents c7a3986 + a670061 commit 8c937ae

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

CacheWarmer/ClassCacheCacheWarmer.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@ public function warmUp($cacheDir)
3434
return;
3535
}
3636

37+
if (file_exists($cacheDir.'/classes.php')) {
38+
return;
39+
}
40+
3741
ClassCollectionLoader::load(include($classmap), $cacheDir, 'classes', false);
3842
}
3943

0 commit comments

Comments
 (0)