Skip to content

Commit

Permalink
Tweak start
Browse files Browse the repository at this point in the history
  • Loading branch information
barryvdh committed Dec 21, 2015
1 parent 7a298d4 commit 3faa57b
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/LaravelDebugbar.php
Original file line number Diff line number Diff line change
Expand Up @@ -131,9 +131,7 @@ public function boot()
$startTime = defined('LARAVEL_START') ? LARAVEL_START : null;
$this->addCollector(new TimeDataCollector($startTime));

if ($this->isLumen()) {
$debugbar->startMeasure('application', 'Application');
} else {
if ( ! $this->isLumen()) {
$this->app->booted(
function () use ($debugbar, $startTime) {
if ($startTime) {
Expand All @@ -142,7 +140,8 @@ function () use ($debugbar, $startTime) {
}
);
}


$debugbar->startMeasure('application', 'Application');
}

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

0 comments on commit 3faa57b

Please sign in to comment.