2020-04-26 04:09:32 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Providers;
|
|
|
|
|
2020-09-08 00:26:27 +00:00
|
|
|
use App\Listeners\LogAuthenticationFailure;
|
2020-05-13 21:47:51 +00:00
|
|
|
use App\Listeners\OnUserRegistration;
|
2020-09-08 00:26:27 +00:00
|
|
|
use Illuminate\Auth\Events\Failed;
|
2020-04-26 04:09:32 +00:00
|
|
|
use Illuminate\Auth\Events\Registered;
|
|
|
|
use Illuminate\Auth\Listeners\SendEmailVerificationNotification;
|
|
|
|
use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider;
|
|
|
|
use Illuminate\Support\Facades\Event;
|
|
|
|
|
|
|
|
class EventServiceProvider extends ServiceProvider
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* The event listener mappings for the application.
|
|
|
|
*
|
|
|
|
* @var array
|
|
|
|
*/
|
|
|
|
protected $listen = [
|
|
|
|
Registered::class => [
|
|
|
|
SendEmailVerificationNotification::class,
|
2020-05-13 21:47:51 +00:00
|
|
|
OnUserRegistration::class
|
2020-04-26 04:09:32 +00:00
|
|
|
],
|
2020-09-08 00:26:27 +00:00
|
|
|
Failed::class => [
|
|
|
|
LogAuthenticationFailure::class
|
|
|
|
],
|
2020-05-29 23:20:39 +00:00
|
|
|
'App\Events\ApplicationApprovedEvent' => [
|
|
|
|
'App\Listeners\PromoteUser'
|
|
|
|
],
|
|
|
|
'App\Events\ApplicationDeniedEvent' => [
|
|
|
|
'App\Listeners\DenyUser'
|
2020-06-26 23:32:33 +00:00
|
|
|
],
|
|
|
|
'App\Events\UserBannedEvent' => [
|
|
|
|
'App\Listeners\OnUserBanned'
|
2020-05-29 23:20:39 +00:00
|
|
|
]
|
2020-04-26 04:09:32 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Register any events for your application.
|
|
|
|
*
|
|
|
|
* @return void
|
|
|
|
*/
|
|
|
|
public function boot()
|
|
|
|
{
|
2020-05-29 23:20:39 +00:00
|
|
|
|
2020-04-26 04:09:32 +00:00
|
|
|
parent::boot();
|
|
|
|
|
|
|
|
//
|
|
|
|
}
|
|
|
|
}
|