Skip to content

Commit

Permalink
Move publishes to boot
Browse files Browse the repository at this point in the history
  • Loading branch information
barryvdh committed Feb 3, 2015
1 parent 8f1cdd7 commit 343dbc0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/ServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ class ServiceProvider extends \Illuminate\Support\ServiceProvider
public function boot()
{
$app = $this->app;

$configPath = __DIR__ . '/../config/debugbar.php';
$this->publishes([$configPath => config_path('debugbar.php')], 'config');

if ($app->runningInConsole()) {
$this->app['config']->set('debugbar.enabled', false);
Expand Down Expand Up @@ -68,7 +71,6 @@ public function register()
{
$configPath = __DIR__ . '/../config/debugbar.php';
$this->mergeConfigFrom($configPath, 'debugbar');
$this->publishes([$configPath => config_path('debugbar.php')]);

$this->app->alias(
'DebugBar\DataFormatter\DataFormatter',
Expand Down

0 comments on commit 343dbc0

Please sign in to comment.