Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit aef39bc

Browse filesBrowse 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
Copy full SHA for aef39bc

File tree

Expand file treeCollapse file tree

1 file changed

+6
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+6
-0
lines changed

‎src/Symfony/Bundle/FrameworkBundle/Command/CacheClearCommand.php

Copy file name to clipboardExpand all lines: src/Symfony/Bundle/FrameworkBundle/Command/CacheClearCommand.php
+6Lines 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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.