2020-11-18 10:23:51 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
namespace App\Providers;
|
|
|
|
|
|
2022-02-02 13:51:45 +01:00
|
|
|
use App\Events\NotifyAdmin;
|
2021-07-21 09:44:29 +02:00
|
|
|
use App\Events\NotifySubscriptions;
|
|
|
|
|
use App\Events\NotifyTicketCreator;
|
|
|
|
|
use App\Events\TicketStatusChanged;
|
|
|
|
|
use App\Listeners\AddStatusMessages;
|
2022-02-02 13:51:45 +01:00
|
|
|
use App\Listeners\SendNotificationMailToAdmin;
|
2021-07-21 09:44:29 +02:00
|
|
|
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
|
|
|
|
|
{
|
|
|
|
|
/**
|
|
|
|
|
* The event listener mappings for the application.
|
|
|
|
|
*
|
2023-08-14 09:23:39 +00:00
|
|
|
* @var array<class-string, array<int, class-string>>
|
2020-11-18 10:23:51 +01:00
|
|
|
*/
|
|
|
|
|
protected $listen = [
|
2021-07-25 19:11:33 +02:00
|
|
|
Registered::class => [SendEmailVerificationNotification::class],
|
|
|
|
|
TicketStatusChanged::class => [AddStatusMessages::class],
|
|
|
|
|
NotifySubscriptions::class => [SendSubscriptionsNotificationsMail::class],
|
|
|
|
|
NotifyTicketCreator::class => [SendNotificationMailToTicketCreator::class],
|
2022-02-02 13:51:45 +01:00
|
|
|
NotifyAdmin::class => [SendNotificationMailToAdmin::class],
|
2020-11-18 10:23:51 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
|
|
/**
|
2023-08-14 09:23:39 +00:00
|
|
|
* Determine if events and listeners should be automatically discovered.
|
2020-11-18 10:23:51 +01:00
|
|
|
*
|
2023-08-14 09:23:39 +00:00
|
|
|
* @return boolean
|
2020-11-18 10:23:51 +01:00
|
|
|
*/
|
2023-08-14 09:23:39 +00:00
|
|
|
public function shouldDiscoverEvents(): bool
|
2020-11-18 10:23:51 +01:00
|
|
|
{
|
2023-08-14 09:23:39 +00:00
|
|
|
return false;
|
2020-11-18 10:23:51 +01:00
|
|
|
}
|
|
|
|
|
}
|