From 677ac784f24241a89e17d96a742900efc7232305 Mon Sep 17 00:00:00 2001 From: "Barry vd. Heuvel" Date: Wed, 17 Feb 2016 09:43:00 +0100 Subject: [PATCH] Backport console fixes to v2.1 --- src/Console/ClearCommand.php | 2 ++ src/ServiceProvider.php | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Console/ClearCommand.php b/src/Console/ClearCommand.php index 3fd7d1a6..267881d9 100644 --- a/src/Console/ClearCommand.php +++ b/src/Console/ClearCommand.php @@ -18,6 +18,8 @@ public function __construct(DebugBar $debugbar) public function fire() { + $this->debugbar->boot(); + if ($storage = $this->debugbar->getStorage()) { $storage->clear(); $this->info('Debugbar Storage cleared!'); diff --git a/src/ServiceProvider.php b/src/ServiceProvider.php index 7beade10..d30153b5 100644 --- a/src/ServiceProvider.php +++ b/src/ServiceProvider.php @@ -61,7 +61,7 @@ public function boot() $this->publishes([$configPath => $this->getConfigPath()], 'config'); if ($app->runningInConsole()) { - $this->app['config']->set('debugbar.enabled', false); + return; } $routeConfig = [