You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
bug #38548 [FrameworkBundle] Bugfixes in buildDir in the CacheClear command (Nyholm)
This PR was squashed before being merged into the 5.x branch.
Discussion
----------
[FrameworkBundle] Bugfixes in buildDir in the CacheClear command
| Q | A
| ------------- | ---
| Branch? | 5.x
| Bug fix? | yes
| New feature? | no
| Deprecations? | no
| Tickets | Fix#38547
| License | MIT
| Doc PR | n/a
Making sure one can clear cache with and without a buildDir
Commits
-------
2cad6bb [FrameworkBundle] Bugfixes in buildDir in the CacheClear command
thrownewRuntimeException(sprintf('Unable to write in the "%s" directory.', $realBuildDir));
100
+
}
101
+
}
102
+
97
103
$io->comment(sprintf('Clearing the cache for the <info>%s</info> environment with debug <info>%s</info>', $kernel->getEnvironment(), var_export($kernel->isDebug(), true)));
98
-
$this->cacheClearer->clear($realBuildDir);
104
+
if ($useBuildDir) {
105
+
$this->cacheClearer->clear($realBuildDir);
106
+
}
99
107
$this->cacheClearer->clear($realCacheDir);
100
108
101
109
// The current event dispatcher is stale, let's not use it anymore
@@ -141,7 +149,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
0 commit comments