Explorar el Código

[FrameworkBundle] made a small optimization

Fabien Potencier hace 14 años
padre
commit
d5b540a4fe
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/Symfony/Bundle/FrameworkBundle/Routing/CachedRouter.php

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