ldc-legaulois/app/Providers/EventServiceProvider.php

42 lines
1 KiB
PHP
Raw Normal View History

2020-07-23 10:29:36 +02:00
<?php
namespace App\Providers;
2024-07-12 16:33:26 +02:00
use App\Events\NewNotification;
use App\Listeners\CreateNotification;
2024-07-05 16:34:57 +02:00
use App\Listeners\PasswordHasReset;
use Illuminate\Auth\Events\PasswordReset;
2020-07-23 10:29:36 +02:00
use Illuminate\Auth\Events\Registered;
use Illuminate\Auth\Listeners\SendEmailVerificationNotification;
use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider;
class EventServiceProvider extends ServiceProvider
{
/**
2024-01-10 14:49:46 +01:00
* The event to listener mappings for the application.
2020-07-23 10:29:36 +02:00
*
2024-01-10 14:49:46 +01:00
* @var array<class-string, array<int, class-string>>
2020-07-23 10:29:36 +02:00
*/
protected $listen = [
Registered::class => [
SendEmailVerificationNotification::class,
],
2024-07-05 16:34:57 +02:00
PasswordReset::class => [
PasswordHasReset::class
],
2024-07-12 16:33:26 +02:00
NewNotification::class => [
CreateNotification::class,
],
2020-07-23 10:29:36 +02:00
];
2024-01-10 14:49:46 +01:00
/**
* Determine if events and listeners should be automatically discovered.
*
* @return boolean
*/
public function shouldDiscoverEvents(): bool
{
return false;
}
2020-07-23 10:29:36 +02:00
}