Skip to content

Commit 4d8a42f

Browse files
committed
Check if shutdown exists
Fixes #239, #237 Not available in L5..
1 parent 244ea7f commit 4d8a42f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ServiceProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public function boot()
2020
$app['config']->package('barryvdh/laravel-debugbar', __DIR__ . '/config');
2121

2222
if ($app->runningInConsole()) {
23-
if ($this->app['config']->get('laravel-debugbar::config.capture_console')) {
23+
if ($this->app['config']->get('laravel-debugbar::config.capture_console') && method_exists($app, 'shutdown')) {
2424
$app->shutdown(
2525
function ($app) {
2626
/** @var LaravelDebugbar $debugbar */

0 commit comments

Comments
 (0)