phpvms/app/Providers/EventServiceProvider.php
Nabeel S 95147e31bf
Fix issue where user stats aren't incremented on PIREP auto accept (#335)
* Fix issue where user stats aren't incremented on PIREP auto accept

* Formatting
2019-08-01 15:23:59 -04:00

38 lines
921 B
PHP
Executable File

<?php
namespace App\Providers;
use App\Events\Expenses;
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 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,
],
Registered::class => [
SendEmailVerificationNotification::class,
],
UserStatsChanged::class => [
AwardListener::class,
],
];
protected $subscribe = [
BidEvents::class,
FinanceEvents::class,
NotificationEvents::class,
];
}