Skip to content

Commit 6aaf2ee

Browse files
committed
Merge branch '2.2' into 2.3
* 2.2: Added sleep() workaround for windows php rename bug [HttpKernel] removed unused variable Conflicts: src/Symfony/Component/HttpKernel/Kernel.php
2 parents 6413b71 + 6a8b6a0 commit 6aaf2ee

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Command/CacheClearCommand.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,9 @@ protected function execute(InputInterface $input, OutputInterface $output)
8383
$this->warmup($warmupDir, $realCacheDir, !$input->getOption('no-optional-warmers'));
8484

8585
$filesystem->rename($realCacheDir, $oldCacheDir);
86+
if (defined('PHP_WINDOWS_VERSION_BUILD')) {
87+
sleep(1); // workaround for windows php rename bug
88+
}
8689
$filesystem->rename($warmupDir, $realCacheDir);
8790
}
8891

0 commit comments

Comments
 (0)