8000 Merge branch '3.4' into 4.0 · symfony/symfony@3a2f37f · GitHub
[go: up one dir, main page]

Skip to content

Commit 3a2f37f

Browse files
Merge branch '3.4' into 4.0
* 3.4: [HttpKernel] Dont reset start time when not needed
2 parents 101ff69 + 9de5014 commit 3a2f37f

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/Symfony/Component/HttpKernel/Kernel.php

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -94,20 +94,22 @@ public function __clone()
9494
*/
9595
public function boot()
9696
{
97-
if ($this->debug) {
98-
$this->startTime = microtime(true);
99-
}
100-
10197
if (true === $this->booted) {
10298
if (!$this->requestStackSize && $this->resetServices) {
10399
if ($this->container->has('services_resetter')) {
104100
$this->container->get('services_resetter')->reset();
105101
}
106102
$this->resetServices = false;
103+
if ($this->debug) {
104+
$this->startTime = microtime(true);
105+
}
107106
}
108107

109108
return;
110109
}
110+
if ($this->debug) {
111+
$this->startTime = microtime(true);
112+
}
111113
if ($this->debug && !isset($_ENV['SHELL_VERBOSITY']) && !isset($_SERVER['SHELL_VERBOSITY'])) {
112114
putenv('SHELL_VERBOSITY=3');
113115
$_ENV['SHELL_VERBOSITY'] = 3;

0 commit comments

Comments
 (0)
0