2022-09-20 19:59:52 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Providers;
|
|
|
|
|
|
|
|
use App\Events\Forms\FormSubmitted;
|
|
|
|
use App\Events\Models\FormCreated;
|
2023-08-30 10:37:08 +00:00
|
|
|
use App\Listeners\FailedWebhookListener;
|
2022-09-20 19:59:52 +00:00
|
|
|
use App\Listeners\Forms\FormCreationConfirmation;
|
|
|
|
use App\Listeners\Forms\NotifyFormSubmission;
|
|
|
|
use App\Listeners\Forms\SubmissionConfirmation;
|
|
|
|
use Illuminate\Auth\Events\Registered;
|
|
|
|
use Illuminate\Auth\Listeners\SendEmailVerificationNotification;
|
|
|
|
use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider;
|
|
|
|
use Illuminate\Support\Facades\Event;
|
2023-08-30 10:37:08 +00:00
|
|
|
use Spatie\WebhookServer\Events\WebhookCallFailedEvent;
|
2022-09-20 19:59:52 +00:00
|
|
|
|
|
|
|
class EventServiceProvider extends ServiceProvider
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* The event listener mappings for the application.
|
|
|
|
*
|
|
|
|
* @var array
|
|
|
|
*/
|
|
|
|
protected $listen = [
|
|
|
|
Registered::class => [
|
|
|
|
SendEmailVerificationNotification::class,
|
|
|
|
],
|
|
|
|
FormCreated::class => [
|
2024-02-23 10:54:12 +00:00
|
|
|
FormCreationConfirmation::class,
|
2022-09-20 19:59:52 +00:00
|
|
|
],
|
|
|
|
FormSubmitted::class => [
|
|
|
|
NotifyFormSubmission::class,
|
|
|
|
SubmissionConfirmation::class,
|
2023-08-30 10:37:08 +00:00
|
|
|
],
|
|
|
|
WebhookCallFailedEvent::class => [
|
2024-02-23 10:54:12 +00:00
|
|
|
FailedWebhookListener::class,
|
|
|
|
],
|
2022-09-20 19:59:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Register any events for your application.
|
|
|
|
*
|
|
|
|
* @return void
|
|
|
|
*/
|
|
|
|
public function boot()
|
|
|
|
{
|
|
|
|
//
|
|
|
|
}
|
|
|
|
}
|