fix kernel root, linux dir separator on windows, to fix cache:clear issue
This commit is contained in:
parent
f9044e44cc
commit
35b458f6b8
@ -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;
|
||||
|
Reference in New Issue
Block a user