jingcai-php/app/Providers/EventServiceProvider.php

73 lines
1.8 KiB
PHP
Executable File

<?php
namespace App\Providers;
use App\Events\OrderPaySuccessEvent;
use App\Events\OrderTicketedEvent;
use App\Events\OrderWinedEvent;
use App\Events\PaySuccessEvent;
use App\Listeners\CommandStartingListener;
use App\Listeners\CustomerWinAddLevelListener;
use App\Listeners\GenerateCustomerRankingListener;
use App\Listeners\JobProcessingListener;
use App\Listeners\OrderPaySuccessListener;
use App\Listeners\OrderTicketedListener;
use App\Listeners\OrderWinListener;
use App\Listeners\RechargeListener;
use Illuminate\Auth\Events\Registered;
use Illuminate\Auth\Listeners\SendEmailVerificationNotification;
use Illuminate\Console\Events\CommandStarting;
use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider;
use Illuminate\Queue\Events\JobProcessing;
class EventServiceProvider extends ServiceProvider
{
/**
* The event listener mappings for the application.
*
* @var array
*/
protected $listen = [
JobProcessing::class => [
JobProcessingListener::class,
],
CommandStarting::class => [
CommandStartingListener::class,
],
Registered::class => [
SendEmailVerificationNotification::class,
],
PaySuccessEvent::class => [
RechargeListener::class,
],
OrderTicketedEvent::class => [
OrderTicketedListener::class,
],
OrderWinedEvent::class => [
CustomerWinAddLevelListener::class,
GenerateCustomerRankingListener::class,
OrderWinListener::class,
],
OrderPaySuccessEvent::class => [
OrderPaySuccessListener::class,
],
];
/**
* Register any events for your application.
*
* @return void
*/
public function boot()
{
parent::boot();
//
}
}