Skip to content

Commit 677ac78

Browse files
committed
Backport console fixes to v2.1
1 parent 3fab290 commit 677ac78

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/Console/ClearCommand.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ public function __construct(DebugBar $debugbar)
1818

1919
public function fire()
2020
{
21+
$this->debugbar->boot();
22+
2123
if ($storage = $this->debugbar->getStorage()) {
2224
$storage->clear();
2325
$this->info('Debugbar Storage cleared!');

src/ServiceProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public function boot()
6161
$this->publishes([$configPath => $this->getConfigPath()], 'config');
6262

6363
if ($app->runningInConsole()) {
64-
$this->app['config']->set('debugbar.enabled', false);
64+
return;
6565
}
6666

6767
$routeConfig = [

0 commit comments

Comments
 (0)