Skip to content

Commit

Permalink
Change WebhookConfigRepository instance to scoped (Octane support)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexVanderbist authored Apr 7, 2022
1 parent 5dcc46a commit 59ff722
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/WebhookClientServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public function packageBooted()
return Route::post($url, WebhookController::class)->name("webhook-client-{$name}");
});

$this->app->singleton(WebhookConfigRepository::class, function () {
$this->app->scoped(WebhookConfigRepository::class, function () {
$configRepository = new WebhookConfigRepository();

collect(config('webhook-client.configs'))
Expand Down

0 comments on commit 59ff722

Please sign in to comment.