48 lines
1.2 KiB
PHP
48 lines
1.2 KiB
PHP
|
|
<?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();
|
||
|
|
|
||
|
|
//
|
||
|
|
}
|
||
|
|
}
|