Quellcode durchsuchen

fix kernel root, linux dir separator on windows, to fix cache:clear issue

jaugustin vor 13 Jahren
Ursprung
Commit
35b458f6b8
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1 1
      src/Symfony/Component/HttpKernel/Kernel.php

+ 1 - 1
src/Symfony/Component/HttpKernel/Kernel.php

@@ -374,7 +374,7 @@ abstract class Kernel implements KernelInterface
     {
     {
         if (null === $this->rootDir) {
         if (null === $this->rootDir) {
             $r = new \ReflectionObject($this);
             $r = new \ReflectionObject($this);
-            $this->rootDir = dirname($r->getFileName());
+            $this->rootDir = str_replace('\\', '/', dirname($r->getFileName()));
         }
         }
 
 
         return $this->rootDir;
         return $this->rootDir;