[FrameworkBundle] Handle project dir in cache:clear command

This commit is contained in:
Nicolas Grekas 2017-05-23 13:48:44 +02:00
parent 4a766693a8
commit fadffad2aa

View File

@ -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;