2022-09-20 21:59:52 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
namespace App\Providers;
|
|
|
|
|
|
|
|
|
|
use App\Events\Forms\FormSubmitted;
|
|
|
|
|
use App\Events\Models\FormCreated;
|
2024-03-28 18:14:30 +01:00
|
|
|
use App\Events\Models\FormIntegrationsEventCreated;
|
2024-05-29 12:03:41 +02:00
|
|
|
use App\Events\SubscriptionCreated;
|
2022-09-20 21:59:52 +02:00
|
|
|
use App\Listeners\Forms\FormCreationConfirmation;
|
2024-03-28 18:14:30 +01:00
|
|
|
use App\Listeners\Forms\FormIntegrationsEventListener;
|
2022-09-20 21:59:52 +02:00
|
|
|
use App\Listeners\Forms\NotifyFormSubmission;
|
2024-05-29 12:03:41 +02:00
|
|
|
use App\Listeners\HandleSubscriptionCreated;
|
2022-09-20 21:59:52 +02:00
|
|
|
use Illuminate\Auth\Events\Registered;
|
|
|
|
|
use Illuminate\Auth\Listeners\SendEmailVerificationNotification;
|
|
|
|
|
use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider;
|
|
|
|
|
|
|
|
|
|
class EventServiceProvider extends ServiceProvider
|
|
|
|
|
{
|
|
|
|
|
/**
|
|
|
|
|
* The event listener mappings for the application.
|
|
|
|
|
*
|
|
|
|
|
* @var array
|
|
|
|
|
*/
|
|
|
|
|
protected $listen = [
|
|
|
|
|
Registered::class => [
|
|
|
|
|
SendEmailVerificationNotification::class,
|
|
|
|
|
],
|
|
|
|
|
FormCreated::class => [
|
2024-02-23 11:54:12 +01:00
|
|
|
FormCreationConfirmation::class,
|
2022-09-20 21:59:52 +02:00
|
|
|
],
|
|
|
|
|
FormSubmitted::class => [
|
2024-03-28 18:14:30 +01:00
|
|
|
NotifyFormSubmission::class
|
2023-08-30 12:37:08 +02:00
|
|
|
],
|
2024-03-28 18:14:30 +01:00
|
|
|
FormIntegrationsEventCreated::class => [
|
|
|
|
|
FormIntegrationsEventListener::class,
|
|
|
|
|
],
|
2024-05-29 12:03:41 +02:00
|
|
|
SubscriptionCreated::class => [
|
|
|
|
|
HandleSubscriptionCreated::class
|
|
|
|
|
],
|
2022-09-20 21:59:52 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Register any events for your application.
|
|
|
|
|
*
|
|
|
|
|
* @return void
|
|
|
|
|
*/
|
|
|
|
|
public function boot()
|
|
|
|
|
{
|
|
|
|
|
//
|
|
|
|
|
}
|
|
|
|
|
}
|