Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 84748d6

Browse filesBrowse files
Merge branch '4.0' into 4.1
* 4.0: [HttpKernel] Dont reset start time when not needed
2 parents d4d137d + 3a2f37f commit 84748d6
Copy full SHA for 84748d6

File tree

Expand file treeCollapse file tree

1 file changed

+6
-4
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+6
-4
lines changed

‎src/Symfony/Component/HttpKernel/Kernel.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/HttpKernel/Kernel.php
+6-4Lines 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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.