From fadffad2aae528962f844cdf2f96fe0a67593eb3 Mon Sep 17 00:00:00 2001 From: Nicolas Grekas Date: Tue, 23 May 2017 13:48:44 +0200 Subject: [PATCH] [FrameworkBundle] Handle project dir in cache:clear command --- .../Bundle/FrameworkBundle/Command/CacheClearCommand.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Symfony/Bundle/FrameworkBundle/Command/CacheClearCommand.php b/src/Symfony/Bundle/FrameworkBundle/Command/CacheClearCommand.php index 49284270e6..02aad425c2 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Command/CacheClearCommand.php +++ b/src/Symfony/Bundle/FrameworkBundle/Command/CacheClearCommand.php @@ -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;