Преглед на файлове

[HttpKernel][Windows] Removed useless DIRECTORY_SEPARATOR conversion

Pascal Borreli преди 14 години
родител
ревизия
3dfbc08d73
променени са 2 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 1 1
      src/Symfony/Component/HttpKernel/Bundle/Bundle.php
  2. 1 1
      tests/Symfony/Tests/Component/HttpKernel/KernelTest.php

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

@@ -98,7 +98,7 @@ abstract class Bundle extends ContainerAware implements BundleInterface
             $this->reflected = new \ReflectionObject($this);
         }
 
-        return strtr(dirname($this->reflected->getFileName()), '\\', '/');
+        return dirname($this->reflected->getFileName());
     }
 
     /**

+ 1 - 1
tests/Symfony/Tests/Component/HttpKernel/KernelTest.php

@@ -659,7 +659,7 @@ EOF;
         $bundle
             ->expects($this->any())
             ->method('getPath')
-            ->will($this->returnValue(strtr($dir, '\\', '/')))
+            ->will($this->returnValue($dir))
         ;
 
         $bundle