aedb1f22b6
* Don't allow cancels from certain states * Unused imports * Don't reset the state doubly * Move SetUserActive into listener; code cleanup * Unused imports * Add missing files into htaccess * Move Command contract to correct folder
44 lines
1.0 KiB
PHP
Executable File
44 lines
1.0 KiB
PHP
Executable File
<?php
|
|
|
|
namespace App\Providers;
|
|
|
|
use App\Events\Expenses;
|
|
use App\Events\PirepFiled;
|
|
use App\Events\UserStatsChanged;
|
|
use App\Listeners\AwardListener;
|
|
use App\Listeners\BidEvents;
|
|
use App\Listeners\ExpenseListener;
|
|
use App\Listeners\FinanceEvents;
|
|
use App\Listeners\NotificationEvents;
|
|
use App\Listeners\SetUserActive;
|
|
use Illuminate\Auth\Events\Registered;
|
|
use Illuminate\Auth\Listeners\SendEmailVerificationNotification;
|
|
use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider;
|
|
|
|
class EventServiceProvider extends ServiceProvider
|
|
{
|
|
protected $listen = [
|
|
Expenses::class => [
|
|
ExpenseListener::class,
|
|
],
|
|
|
|
PirepFiled::class => [
|
|
SetUserActive::class,
|
|
],
|
|
|
|
Registered::class => [
|
|
SendEmailVerificationNotification::class,
|
|
],
|
|
|
|
UserStatsChanged::class => [
|
|
AwardListener::class,
|
|
],
|
|
];
|
|
|
|
protected $subscribe = [
|
|
BidEvents::class,
|
|
FinanceEvents::class,
|
|
NotificationEvents::class,
|
|
];
|
|
}
|