Skip to content

Commit a745569

Browse files
authored
Treat SessionRetriever as Singleton
1 parent daf923d commit a745569

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/NativeSessionServiceProvider.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,9 @@ public function register()
1919
return $app->make(NativeSessionGuard::class);
2020
});
2121

22-
$this->app->bind(SessionRetriever::class, function () {
22+
$this->app->singleton(SessionRetriever::class, function () {
2323
$config = $this->app->make(Repository::class);
24+
2425
$path = $config->get('auth.guards.php.storage');
2526

2627
$domain = $config->get('auth.guards.php.domain');

0 commit comments

Comments
 (0)