39 lines
1014 B
PHP
39 lines
1014 B
PHP
<?php
|
|
|
|
namespace Modules\Auth\Providers;
|
|
|
|
use Illuminate\Auth\Events\Registered;
|
|
use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider;
|
|
use Illuminate\Support\Facades\Event;
|
|
|
|
class EventServiceProvider extends ServiceProvider
|
|
{
|
|
/**
|
|
* The event handler mappings for the application.
|
|
*
|
|
* @var array<string, array<int, string>>
|
|
*/
|
|
protected $listen = [];
|
|
|
|
/**
|
|
* Indicates if events should be discovered.
|
|
*
|
|
* @var bool
|
|
*/
|
|
protected static $shouldDiscoverEvents = true;
|
|
|
|
/**
|
|
* Configure the proper event listeners for email verification.
|
|
*/
|
|
protected function configureEmailVerification(): void {}
|
|
|
|
public function boot(): void
|
|
{
|
|
// Framework auto-registers SendEmailVerificationNotification on Registered.
|
|
// Verification is user-initiated via the email verification banner instead.
|
|
$this->app->booted(function () {
|
|
Event::forget(Registered::class);
|
|
});
|
|
}
|
|
}
|