Skip to content

Commit ae4234b

Browse files
Merge branch '3.4'
* 3.4: (26 commits) [Bridge\PhpUnit] Disable broken auto-require mechanism of phpunit [Console] Fix disabling lazy commands [DI] Remove scalar typehint in class used in test case Remove the `server:log` command if monolog is not loaded [SecurityBundle] Fix syntax error in test [Console] Remove remaining dead code Throw on service:method factory notation in PHP-based DI configuration Test that named arguments are prioritized over typehinted bumped Symfony version to 3.3.14 bumped Symfony version to 2.8.32 bumped Symfony version to 2.7.39 Prove that change is working with tests updated VERSION for 3.3.13 updated CHANGELOG for 3.3.13 updated VERSION for 2.8.31 updated CHANGELOG for 2.8.31 updated VERSION for 2.7.38 updated CHANGELOG for 2.7.38 Replace array|\Traversable by iterable [DI] Fix by-type args injection ...
2 parents 2c74edb + 3240de1 commit ae4234b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Command/CacheClearCommand.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,9 @@ protected function execute(InputInterface $input, OutputInterface $output)
9191
$io->comment(sprintf('Clearing the cache for the <info>%s</info> environment with debug <info>%s</info>', $kernel->getEnvironment(), var_export($kernel->isDebug(), true)));
9292
$this->cacheClearer->clear($realCacheDir);
9393

94+
// The current event dispatcher is stale, let's not use it anymore
95+
$this->getApplication()->setDispatcher(new EventDispatcher());
96+
9497
if ($input->getOption('no-warmup')) {
9598
$this->filesystem->rename($realCacheDir, $oldCacheDir);
9699
} else {
@@ -103,9 +106,6 @@ protected function execute(InputInterface $input, OutputInterface $output)
103106

104107
$this->filesystem->remove($oldCacheDir);
105108

106-
// The current event dispatcher is stale, let's not use it anymore
107-
$this->getApplication()->setDispatcher(new EventDispatcher());
108-
109109
if ($output->isVerbose()) {
110110
$io->comment('Finished');
111111
}

0 commit comments

Comments
 (0)