Skip to content

Commit 889b3dc

Browse files
committed
Fix cache:clear with buildDir
1 parent f8d4c5b commit 889b3dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Kernel.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -609,7 +609,7 @@ protected function getKernelParameters()
609609
'kernel.runtime_environment' => '%env(default:kernel.environment:APP_RUNTIME_ENV)%',
610610
'kernel.debug' => $this->debug,
611611
'kernel.build_dir' => realpath($buildDir = $this->warmupDir ?: $this->getBuildDir()) ?: $buildDir,
612-
'kernel.cache_dir' => realpath($this->getCacheDir()) ?: $this->getCacheDir(),
612+
'kernel.cache_dir' => realpath($cacheDir = ($this->getCacheDir() === $this->getBuildDir() ? ($this->warmupDir ?: $this->getCacheDir()) : $this->getCacheDir())) ?: $cacheDir,
613613
'kernel.logs_dir' => realpath($this->getLogDir()) ?: $this->getLogDir(),
614614
'kernel.bundles' => $bundles,
615615
'kernel.bundles_metadata' => $bundlesMetadata,

0 commit comments

Comments
 (0)