Skip to content

Commit 4a72c69

Browse files
authored
Change AccountingApi to be a binding instead of a singleton
1 parent 5377541 commit 4a72c69

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/XeroServiceProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ public function register()
7676
return new IdentityApi(new GuzzleClient(), $app->make(Configuration::class));
7777
});
7878

79-
$this->app->singleton(AccountingApi::class, function (Application $app) {
79+
$this->app->bind(AccountingApi::class, function (Application $app) {
8080
return new AccountingApi(new GuzzleClient(), $app->make(Configuration::class));
8181
});
8282

0 commit comments

Comments
 (0)