Selaa lähdekoodia

[FrameworkBundle] fixed cache:clear command for non-namespaced AppKernel classes

Fabien Potencier 14 vuotta sitten
vanhempi
commit
cbe1f6f763

+ 1 - 1
src/Symfony/Bundle/FrameworkBundle/Command/CacheClearCommand.php

@@ -137,7 +137,7 @@ EOF;
         require_once $file;
         @unlink($file);
 
-        $class = "\\$namespace\\$class"; 
+        $class = "$namespace\\$class"; 
 
         return new $class($parent->getEnvironment(), $debug);
     }