Skip to content

Commit 2469446

Browse files
[FrameworkBundle] fix cache:clear command
1 parent 45251b6 commit 2469446

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Kernel.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -586,12 +586,12 @@ protected function getKernelParameters()
586586

587587
return array_merge(
588588
array(
589-
'kernel.root_dir' => $this->rootDir,
589+
'kernel.root_dir' => realpath($this->rootDir) ?: $this->rootDir,
590590
'kernel.environment' => $this->environment,
591591
'kernel.debug' => $this->debug,
592592
'kernel.name' => $this->name,
593-
'kernel.cache_dir' => $this->getCacheDir(),
594-
'kernel.logs_dir' => $this->getLogDir(),
593+
'kernel.cache_dir' => realpath($this->getCacheDir()) ?: $this->getCacheDir(),
594+
'kernel.logs_dir' => realpath($this->getLogDir()) ?: $this->getLogDir(),
595595
'kernel.bundles' => $bundles,
596596
'kernel.charset' => $this->getCharset(),
597597
'kernel.container_class' => $this->getContainerClass(),

0 commit comments

Comments
 (0)