Skip to content

Commit

Permalink
bug #22872 [FrameworkBundle] Handle project dir in cache:clear comman…
Browse files Browse the repository at this point in the history
…d (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
  • Loading branch information
fabpot committed May 23, 2017
2 parents 8f29634 + fadffad commit aef39bc
Showing 1 changed file with 6 additions and 0 deletions.
Expand Up @@ -201,6 +201,7 @@ protected function getTempKernel(KernelInterface $parent, $namespace, $parentCla
{
$cacheDir = var_export($warmupDir, true);
$rootDir = var_export(realpath($parent->getRootDir()), true);
$projectDir = var_export(realpath($parent->getProjectDir()), true);
$logDir = var_export(realpath($parent->getLogDir()), true);
// the temp kernel class name must have the same length than the real one
// to avoid the many problems in serialized resources files
Expand All @@ -224,6 +225,11 @@ public function getRootDir()
return $rootDir;
}
public function getProjectDir()
{
return $projectDir;
}
public function getLogDir()
{
return $logDir;
Expand Down

0 comments on commit aef39bc

Please sign in to comment.