8000 bug #22872 [FrameworkBundle] Handle project dir in cache:clear comman… · symfony/symfony@aef39bc · GitHub
[go: up one dir, main page]

Skip to content

Commit aef39bc

Browse files
committed
bug #22872 [FrameworkBundle] Handle project dir in cache:clear command (nicolas-grekas)
This PR was merged into the 3.3 branch. Discussion ---------- [FrameworkBundle] Handle project dir in cache:clear command | Q | A | ------------- | --- | Branch? | 3.3 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #22721 | License | MIT | Doc PR | - Commits ------- fadffad [FrameworkBundle] Handle project dir in cache:clear command
2 parents 8f29634 + fadffad commit aef39bc

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/Symfony/Bundle/FrameworkBundle/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)
0