ldc-web/app/Providers/EventServiceProvider.php

41 lines
892 B
PHP
Raw Normal View History

2020-04-09 13:05:23 +02:00
<?php
namespace App\Providers;
use Illuminate\Auth\Events\Registered;
2023-09-22 09:59:11 +02:00
use Illuminate\Auth\Listeners\SendEmailVerificationNotification;
2020-04-09 13:05:23 +02:00
use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider;
class EventServiceProvider extends ServiceProvider
{
/**
2023-09-22 09:59:11 +02:00
* The event to listener mappings for the application.
2020-04-09 13:05:23 +02:00
*
2023-09-22 09:59:11 +02:00
* @var array<class-string, array<int, class-string>>
2020-04-09 13:05:23 +02:00
*/
protected $listen = [
Registered::class => [
2023-09-22 09:59:11 +02:00
SendEmailVerificationNotification::class,
2020-04-09 13:05:23 +02:00
],
];
/**
* Register any events for your application.
*
* @return void
*/
2023-09-22 09:59:11 +02:00
public function boot(): void
2020-04-09 13:05:23 +02:00
{
2023-09-22 09:59:11 +02:00
}
2023-09-22 09:59:11 +02:00
/**
* Determine if events and listeners should be automatically discovered.
*
* @return boolean
*/
public function shouldDiscoverEvents(): bool
{
return false;
2020-04-09 13:05:23 +02:00
}
}