Explorar el Código

[HttpKernel] unified paths on Windows and *nix

Fabien Potencier hace 14 años
padre
commit
1148519695
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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()));
     }
 }