Skip to content

Commit 07a8360

Browse files
[FrameworkBundle] Handle project dir in cache:clear command
1 parent f6d3b14 commit 07a8360

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Command/CacheClearCommand.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,7 @@ protected function getTempKernel(KernelInterface $parent, $namespace, $parentCla
201201
{
202202
$cacheDir = var_export($warmupDir, true);
203203
$rootDir = var_export(realpath($parent->getRootDir()), true);
204+
$projectDir = var_export(realpath($parent->getProjectDir()), true);
204205
$logDir = var_export(realpath($parent->getLogDir()), true);
205206
// the temp kernel class name must have the same length than the real one
206207
// to avoid the many problems in serialized resources files
@@ -224,6 +225,11 @@ public function getRootDir()
224225
return $rootDir;
225226
}
226227
228+
public function getProjectDir()
229+
{
230+
return $projectDir;
231+
}
232+
227233
public function getLogDir()
228234
{
229235
return $logDir;

0 commit comments

Comments
 (0)