浏览代码

[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->namespacePrefix = str_replace('/', '\\', dirname($tmp));
         $this->name = basename($tmp);
         $this->name = basename($tmp);
         $this->reflection = new \ReflectionObject($this);
         $this->reflection = new \ReflectionObject($this);
-        $this->path = dirname($this->reflection->getFilename());
+        $this->path = str_replace('\\', '/', dirname($this->reflection->getFilename()));
     }
     }
 }
 }