Переглянути джерело

[HttpKernel] unified paths on Windows and *nix

Fabien Potencier 14 роки тому
батько
коміт
1148519695
1 змінених файлів з 1 додано та 1 видалено
  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()));
     }
 }