Quellcode durchsuchen

[HttpKernel] unified paths on Windows and *nix

Fabien Potencier vor 14 Jahren
Ursprung
Commit
1148519695
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1 1
      src/Symfony/Component/HttpKernel/Bundle/Bundle.php

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

@@ -165,6 +165,6 @@ abstract class Bundle extends ContainerAware implements BundleInterface
         $this->namespacePrefix = str_replace('/', '\\', dirname($tmp));
         $this->name = basename($tmp);
         $this->reflection = new \ReflectionObject($this);
-        $this->path = dirname($this->reflection->getFilename());
+        $this->path = str_replace('\\', '/', dirname($this->reflection->getFilename()));
     }
 }