Files
monica/app/Providers/EventServiceProvider.php
T
2024-01-02 23:46:21 +01:00

60 lines
1.8 KiB
PHP

<?php
namespace App\Providers;
use App\Domains\Contact\ManageDocuments\Events\FileDeleted;
use App\Domains\Contact\ManageDocuments\Listeners\DeleteFileInStorage;
use App\Listeners\LoginListener;
use App\Listeners\WebauthnRegistered;
use Illuminate\Auth\Events\Login;
use Illuminate\Auth\Events\Registered;
use Illuminate\Auth\Listeners\SendEmailVerificationNotification;
use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider;
use LaravelWebauthn\Events\WebauthnRegister;
use SocialiteProviders\Azure\AzureExtendSocialite;
use SocialiteProviders\Facebook\FacebookExtendSocialite;
use SocialiteProviders\GitHub\GitHubExtendSocialite;
use SocialiteProviders\Google\GoogleExtendSocialite;
use SocialiteProviders\LinkedIn\LinkedInExtendSocialite;
use SocialiteProviders\Manager\SocialiteWasCalled;
class EventServiceProvider extends ServiceProvider
{
/**
* The event listener mappings for the application.
*
* @var array<class-string, array<int, class-string>>
*/
protected $listen = [
Login::class => [
LoginListener::class,
],
FileDeleted::class => [
DeleteFileInStorage::class,
],
Registered::class => [
SendEmailVerificationNotification::class,
],
SocialiteWasCalled::class => [
AzureExtendSocialite::class,
FacebookExtendSocialite::class,
GitHubExtendSocialite::class,
GoogleExtendSocialite::class,
LinkedInExtendSocialite::class,
],
WebauthnRegister::class => [
WebauthnRegistered::class,
],
];
/**
* Register any events for your application.
*
* @return void
*/
public function boot()
{
//
}
}