Sfoglia il codice sorgente

[FrameworkBundle] made a small optimization

Fabien Potencier 14 anni fa
parent
commit
d5b540a4fe

+ 1 - 1
src/Symfony/Bundle/FrameworkBundle/Routing/CachedRouter.php

@@ -39,7 +39,7 @@ class CachedRouter implements RouterInterface
             throw new \RuntimeException(sprintf('The routing cache is not warmed up (%s).', $cache));
         }
 
-        if (!class_exists($matcher)) {
+        if (!class_exists($matcher, false)) {
             require_once $cache;
             require_once $cacheDir.'/'.$generator.'.php';
         }