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
-------
fadffad2aa
[FrameworkBundle] Handle project dir in cache:clear command
This commit is contained in:
commit
aef39bcee5
@ -201,6 +201,7 @@ EOF
|
||||
{
|
||||
$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
|
||||
@ -224,6 +225,11 @@ namespace $namespace
|
||||
return $rootDir;
|
||||
}
|
||||
|
||||
public function getProjectDir()
|
||||
{
|
||||
return $projectDir;
|
||||
}
|
||||
|
||||
public function getLogDir()
|
||||
{
|
||||
return $logDir;
|
||||
|
Reference in New Issue
Block a user