merged branch jaugustin/fix-cache-clear-windows-2.0 (PR #4408)

Commits
-------

35b458f fix kernel root, linux dir separator on windows, to fix cache:clear issue

Discussion
----------

Fix cache clear windows 2.0

Hi,

This fix the issue #3453 for the 2.0 branch.

---------------------------------------------------------------------------

by travisbot at 2012-05-25T07:43:47Z

This pull request [fails](http://travis-ci.org/symfony/symfony/builds/1430935) (merged 35b458f6 into f9044e44).
This commit is contained in:
Fabien Potencier 2012-05-25 09:51:23 +02:00
commit 167779e546

View File

@ -374,7 +374,7 @@ abstract class Kernel implements KernelInterface
{
if (null === $this->rootDir) {
$r = new \ReflectionObject($this);
$this->rootDir = dirname($r->getFileName());
$this->rootDir = str_replace('\\', '/', dirname($r->getFileName()));
}
return $this->rootDir;