Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 91e5b10

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 e2f7d1e + d60fa06 commit 91e5b10

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/Symfony/Bundle/FrameworkBundle/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

src/Symfony/Component/HttpKernel/Kernel.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ abstract class Kernel implements KernelInterface, TerminableInterface
5858
protected $booted;
5959
protected $name;
6060
protected $startTime;
61-
protected $classes;
6261
protected $loadClassCache;
62+
protected $errorReportingLevel;
6363

6464
const VERSION = '2.3.4-DEV';
6565
const VERSION_ID = '20304';
@@ -83,7 +83,6 @@ public function __construct($environment, $debug)
8383
$this->booted = false;
8484
$this->rootDir = $this->getRootDir();
8585
$this->name = $this->getName();
86-
$this->classes = array();
8786
$this->bundles = array();
8887

8988
if ($this->debug) {

0 commit comments

Comments
 (0)