Skip to content

Commit

Permalink
Merge pull request barryvdh#382 from scil/patch-1
Browse files Browse the repository at this point in the history
use singleton instead of share
  • Loading branch information
barryvdh committed Aug 5, 2015
2 parents 45ebbab + 3530031 commit be5006f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/ServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@ public function register()
'DebugBar\DataFormatter\DataFormatterInterface'
);

$this->app['debugbar'] = $this->app->share(
function ($app) {
$this->app->singleton('debugbar', function ($app) {
$debugbar = new LaravelDebugbar($app);

$sessionManager = $app['session'];
Expand Down

0 comments on commit be5006f

Please sign in to comment.