Skip to content

Commit be5006f

Browse files
committed
Merge pull request barryvdh#382 from scil/patch-1
use singleton instead of share
2 parents 45ebbab + 3530031 commit be5006f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/ServiceProvider.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,7 @@ public function register()
2626
'DebugBar\DataFormatter\DataFormatterInterface'
2727
);
2828

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

3332
$sessionManager = $app['session'];

0 commit comments

Comments
 (0)