love_php/app/Providers/EventServiceProvider.php

48 lines
1.2 KiB
PHP
Raw Normal View History

2026-04-02 09:20:51 +08:00
<?php
namespace App\Providers;
use Illuminate\Support\Facades\Event;
use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider;
class EventServiceProvider extends ServiceProvider
{
/**
* The event listener mappings for the application.
*
* @var array
*/
protected $listen = [
'Laravel\Passport\Events\AccessTokenCreated' => [
'App\Listeners\RevokeOldTokens',
],
'Laravel\Passport\Events\RefreshTokenCreated' => [
'App\Listeners\PruneOldTokens',
],
'App\Events\OutUserMatch' => [
'App\Listeners\OutUserMatchListener',
],
// \SocialiteProviders\Manager\SocialiteWasCalled::class => [
// // add your listeners (aka providers) here
// 'SocialiteProviders\\WeChatWeb\\WeChatWebExtendSocialite@handle',
// ],
// \SocialiteProviders\Manager\SocialiteWasCalled::class => [
// // add your listeners (aka providers) here
// 'SocialiteProviders\\Weixin\\WeixinExtendSocialite@handle',
// ],
];
/**
* Register any events for your application.
*
* @return void
*/
public function boot()
{
parent::boot();
//
}
}