Skip to content

Commit

Permalink
Fix for route caching
Browse files Browse the repository at this point in the history
Routes should be still registered to support route caching.
  • Loading branch information
jannis-seemann committed Feb 15, 2015
1 parent f904a4b commit 28f5175
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/ServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,6 @@ public function boot()
$this->app['config']->set('debugbar.enabled', false);
}

if (! $this->app['config']->get('debugbar.enabled')) {
return;
}

$routeConfig = [
'namespace' => 'Barryvdh\Debugbar\Controllers',
'prefix' => '_debugbar',
Expand All @@ -50,6 +46,10 @@ public function boot()
]);
});

if (! $this->app['config']->get('debugbar.enabled')) {
return;
}

/** @var LaravelDebugbar $debugbar */
$debugbar = $this->app['debugbar'];
$debugbar->boot();
Expand Down

0 comments on commit 28f5175

Please sign in to comment.