Skip to content

Commit

Permalink
use scoped
Browse files Browse the repository at this point in the history
  • Loading branch information
kawax committed Aug 25, 2024
1 parent 233f7e1 commit 2030ded
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/google/Providers/GoogleServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public function register(): void
{
$this->mergeConfigFrom(__DIR__.'/../../../config/google.php', 'google');

$this->app->singleton(GoogleApiClient::class, fn ($app) => new GoogleApiClient($app['config']['google']));
$this->app->scoped(GoogleApiClient::class, fn ($app) => new GoogleApiClient($app['config']['google']));

$this->app->alias(GoogleApiClient::class, 'google-client');
}
Expand Down
2 changes: 1 addition & 1 deletion src/Providers/SheetsServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class SheetsServiceProvider extends ServiceProvider implements DeferrableProvide
*/
public function register(): void
{
$this->app->singleton(Factory::class, SheetsClient::class);
$this->app->scoped(Factory::class, SheetsClient::class);
}

/**
Expand Down

0 comments on commit 2030ded

Please sign in to comment.