2FAuth/app/Providers/EventServiceProvider.php

60 lines
1.5 KiB
PHP
Raw Normal View History

2019-05-20 07:37:41 +02:00
<?php
namespace App\Providers;
use App\Events\GroupDeleted;
2023-03-10 22:59:46 +01:00
use App\Events\GroupDeleting;
use App\Events\ScanForNewReleaseCalled;
2022-11-22 15:15:52 +01:00
use App\Events\TwoFAccountDeleted;
2022-09-21 21:50:41 +02:00
use App\Listeners\CleanIconStorage;
use App\Listeners\DissociateTwofaccountFromGroup;
2022-11-22 15:15:52 +01:00
use App\Listeners\ReleaseRadar;
use App\Listeners\ResetUsersPreference;
2019-05-20 07:37:41 +02: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-03-26 23:04:06 +02:00
* @var array<string, array<int, string>>
2019-05-20 07:37:41 +02:00
*/
protected $listen = [
Registered::class => [
SendEmailVerificationNotification::class,
],
2022-09-21 21:50:41 +02:00
TwoFAccountDeleted::class => [
CleanIconStorage::class,
],
2022-09-21 21:50:41 +02:00
GroupDeleting::class => [
DissociateTwofaccountFromGroup::class,
],
GroupDeleted::class => [
ResetUsersPreference::class,
],
ScanForNewReleaseCalled::class => [
2022-09-21 21:50:41 +02:00
ReleaseRadar::class,
],
2019-05-20 07:37:41 +02:00
];
/**
* Register any events for your application.
*
* @return void
*/
public function boot()
{
//
}
2023-08-01 11:26:58 +02:00
/**
* Determine if events and listeners should be automatically discovered.
*/
public function shouldDiscoverEvents() : bool
{
return false;
}
2019-05-20 07:37:41 +02:00
}