Skip to content

Commit 3530031

Browse files
committed
use singleton instead of share
1 parent 45ebbab commit 3530031

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)