2020-11-18 10:23:51 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
namespace App\Providers;
|
|
|
|
|
|
2021-07-21 09:44:29 +02:00
|
|
|
use App\Events\NotifySubscriptions;
|
|
|
|
|
use App\Events\NotifyTicketCreator;
|
|
|
|
|
use App\Events\TicketStatusChanged;
|
|
|
|
|
use App\Listeners\AddStatusMessages;
|
|
|
|
|
use App\Listeners\SendNotificationMail;
|
|
|
|
|
use App\Listeners\SendNotificationMailToTicketCreator;
|
|
|
|
|
use App\Listeners\SendSubscriptionsNotificationsMail;
|
2020-11-18 10:23:51 +01:00
|
|
|
use Illuminate\Auth\Events\Registered;
|
|
|
|
|
use Illuminate\Auth\Listeners\SendEmailVerificationNotification;
|
|
|
|
|
use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider;
|
|
|
|
|
|
|
|
|
|
class EventServiceProvider extends ServiceProvider
|
|
|
|
|
{
|
2021-07-21 09:44:29 +02:00
|
|
|
|
2020-11-18 10:23:51 +01:00
|
|
|
/**
|
|
|
|
|
* The event listener mappings for the application.
|
|
|
|
|
*
|
|
|
|
|
* @var array
|
|
|
|
|
*/
|
|
|
|
|
protected $listen = [
|
|
|
|
|
Registered::class => [
|
|
|
|
|
SendEmailVerificationNotification::class,
|
|
|
|
|
],
|
2021-07-21 09:44:29 +02:00
|
|
|
TicketStatusChanged::class => [
|
|
|
|
|
AddStatusMessages::class
|
|
|
|
|
],
|
|
|
|
|
NotifySubscriptions::class => [
|
|
|
|
|
SendSubscriptionsNotificationsMail::class
|
2020-11-25 16:05:21 +01:00
|
|
|
],
|
2021-07-21 09:44:29 +02:00
|
|
|
NotifyTicketCreator::class => [
|
|
|
|
|
SendNotificationMailToTicketCreator::class
|
2020-11-26 15:48:35 +01:00
|
|
|
],
|
2020-11-18 10:23:51 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Register any events for your application.
|
|
|
|
|
*
|
|
|
|
|
* @return void
|
|
|
|
|
*/
|
|
|
|
|
public function boot()
|
|
|
|
|
{
|
|
|
|
|
//
|
|
|
|
|
}
|
|
|
|
|
}
|