Browse Source

[FrameworkBundle] made a small optimization

Fabien Potencier 14 years ago
parent
commit
d5b540a4fe
1 changed files with 1 additions and 1 deletions
  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));
             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 $cache;
             require_once $cacheDir.'/'.$generator.'.php';
             require_once $cacheDir.'/'.$generator.'.php';
         }
         }