opnform/app/Providers/EventServiceProvider.php

50 lines
1.3 KiB
PHP
Raw Permalink Normal View History

2022-09-20 19:59:52 +00:00
<?php
namespace App\Providers;
use App\Events\Forms\FormSubmitted;
use App\Events\Models\FormCreated;
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;
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,
],
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()
{
//
}
}