You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
1.0 KiB
41 lines
1.0 KiB
<?php
|
|
|
|
namespace App\Providers;
|
|
|
|
use App\Listeners\WebhookFailedToSendToCoreListener;
|
|
use App\Listeners\WebhookSuccessfullySentToCoreListener;
|
|
use Illuminate\Auth\Events\Registered;
|
|
use Illuminate\Auth\Listeners\SendEmailVerificationNotification;
|
|
use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider;
|
|
use Spatie\WebhookServer\Events\WebhookCallFailedEvent;
|
|
use Spatie\WebhookServer\Events\WebhookCallSucceededEvent;
|
|
|
|
class EventServiceProvider extends ServiceProvider
|
|
{
|
|
/**
|
|
* The event listener mappings for the application.
|
|
*
|
|
* @var array
|
|
*/
|
|
protected $listen = [
|
|
WebhookCallSucceededEvent::class => [
|
|
WebhookSuccessfullySentToCoreListener::class
|
|
],
|
|
|
|
WebhookCallFailedEvent::class => [
|
|
WebhookFailedToSendToCoreListener::class,
|
|
],
|
|
];
|
|
|
|
/**
|
|
* Register any events for your application.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function boot()
|
|
{
|
|
parent::boot();
|
|
|
|
//
|
|
}
|
|
}
|