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 aa68640 commit 7f24697
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 @@ -27,7 +27,7 @@ public function boot()

Route::macro('webhooks', fn (string $url, string $name = 'default') => Route::post($url, '\Spatie\WebhookClient\WebhookController')->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 7f24697

Please sign in to comment.