Snapshot of main at 9f39a6e1e (2026-11-02)
This commit is contained in:
commit
6ccf1792d7
2580 files changed
+1040202
No files matched your search
@@ -0,0 +1,82 @@
|
||||
<?php
|
||||
|
||||
namespace App\Providers;
|
||||
|
||||
use App\Events\Auth\RegisteredByAdmin;
|
||||
use App\Events\ProfileSwitchEvent;
|
||||
use App\Events\ProfileVerified;
|
||||
use App\Listeners\Auth\SendAdminCreatedVerificationNotification;
|
||||
use App\Listeners\LogProfileSwitch;
|
||||
use App\Listeners\LoginSuccessful;
|
||||
use App\Listeners\ReactionCreatedListener;
|
||||
use App\Listeners\ReactionRemovedListener;
|
||||
use App\Listeners\SendEmailNewMessage;
|
||||
use Namu\WireChat\Events\MessageCreated;
|
||||
use App\Listeners\UpdateProfileEmailVerifiedAt;
|
||||
use Cog\Laravel\Love\Reaction\Events\ReactionHasBeenAdded;
|
||||
use Cog\Laravel\Love\Reaction\Events\ReactionHasBeenRemoved;
|
||||
use Illuminate\Auth\Events\Login;
|
||||
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.
|
||||
*
|
||||
* @var array<class-string, array<int, class-string>>
|
||||
*/
|
||||
protected $listen = [
|
||||
Registered::class => [
|
||||
SendEmailVerificationNotification::class,
|
||||
],
|
||||
|
||||
RegisteredByAdmin::class => [
|
||||
SendAdminCreatedVerificationNotification::class,
|
||||
],
|
||||
|
||||
Login::class => [
|
||||
LoginSuccessful::class
|
||||
],
|
||||
|
||||
ReactionHasBeenAdded::class => [
|
||||
ReactionCreatedListener::class
|
||||
],
|
||||
|
||||
ReactionHasBeenRemoved::class => [
|
||||
ReactionRemovedListener::class
|
||||
],
|
||||
|
||||
'Illuminate\Auth\Events\Logout' => [
|
||||
'App\Listeners\HandleUserLogout',
|
||||
],
|
||||
|
||||
// Log the date and ip of the profile that is switched to:
|
||||
// When the ProfileSwitchEvent triggers the LogProfileSwitch listens
|
||||
ProfileSwitchEvent::class => [
|
||||
LogProfileSwitch::class,
|
||||
],
|
||||
|
||||
// Email verification of profile models (organization's, banks, admins etc)
|
||||
ProfileVerified::class => [
|
||||
UpdateProfileEmailVerifiedAt::class,
|
||||
],
|
||||
|
||||
MessageCreated::class => [
|
||||
SendEmailNewMessage::class,
|
||||
],
|
||||
];
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Register any events for your application.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function boot()
|
||||
{
|
||||
//
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user