2021-04-02 19:48:41 +08:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
namespace App\Providers;
|
|
|
|
|
|
2022-03-26 04:27:04 +08:00
|
|
|
use App\Events\TorrentUpdated;
|
|
|
|
|
use App\Listeners\SyncTorrentToEs;
|
2021-04-02 19:48:41 +08:00
|
|
|
use Illuminate\Auth\Events\Registered;
|
|
|
|
|
use Illuminate\Auth\Listeners\SendEmailVerificationNotification;
|
|
|
|
|
use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider;
|
|
|
|
|
use Illuminate\Support\Facades\Event;
|
|
|
|
|
|
|
|
|
|
class EventServiceProvider extends ServiceProvider
|
|
|
|
|
{
|
|
|
|
|
/**
|
|
|
|
|
* The event listener mappings for the application.
|
|
|
|
|
*
|
|
|
|
|
* @var array
|
|
|
|
|
*/
|
|
|
|
|
protected $listen = [
|
|
|
|
|
Registered::class => [
|
|
|
|
|
SendEmailVerificationNotification::class,
|
|
|
|
|
],
|
2022-03-26 04:27:04 +08:00
|
|
|
TorrentUpdated::class => [
|
|
|
|
|
SyncTorrentToEs::class,
|
|
|
|
|
],
|
2021-04-02 19:48:41 +08:00
|
|
|
];
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Register any events for your application.
|
|
|
|
|
*
|
|
|
|
|
* @return void
|
|
|
|
|
*/
|
|
|
|
|
public function boot()
|
|
|
|
|
{
|
|
|
|
|
//
|
|
|
|
|
}
|
|
|
|
|
}
|