Skip to content

Commit

Permalink
Backport console fixes to v2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
barryvdh committed Feb 17, 2016
1 parent 3fab290 commit 677ac78
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/Console/ClearCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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!');
Expand Down
2 changes: 1 addition & 1 deletion src/ServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand Down

0 comments on commit 677ac78

Please sign in to comment.