Skip to content

Commit 3faa57b

Browse files
committed
Tweak start
1 parent 7a298d4 commit 3faa57b

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/LaravelDebugbar.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -131,9 +131,7 @@ public function boot()
131131
$startTime = defined('LARAVEL_START') ? LARAVEL_START : null;
132132
$this->addCollector(new TimeDataCollector($startTime));
133133

134-
if ($this->isLumen()) {
135-
$debugbar->startMeasure('application', 'Application');
136-
} else {
134+
if ( ! $this->isLumen()) {
137135
$this->app->booted(
138136
function () use ($debugbar, $startTime) {
139137
if ($startTime) {
@@ -142,7 +140,8 @@ function () use ($debugbar, $startTime) {
142140
}
143141
);
144142
}
145-
143+
144+
$debugbar->startMeasure('application', 'Application');
146145
}
147146

148147
if ($this->shouldCollect('memory', true)) {

0 commit comments

Comments
 (0)