Skip to content

Commit

Permalink
Merge pull request barryvdh#614 from Except10n/master
Browse files Browse the repository at this point in the history
Fix get the route-middleware in lumen
  • Loading branch information
barryvdh authored Mar 8, 2017
2 parents e1ee861 + 99351a0 commit 328d204
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/LaravelDebugbar.php
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ function ($level, $message = null, $context = null) use ($logger) {
}

if ($this->app['config']->get('debugbar.options.db.backtrace')) {
$middleware = $this->app['router']->getMiddleware();
$middleware = ! $this->is_lumen ? $this->app['router']->getMiddleware() : [];
$queryCollector->setFindSource(true, $middleware);
}

Expand Down

0 comments on commit 328d204

Please sign in to comment.