2016-08-28 10:05:21 +08:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Providers;
|
|
|
|
|
2020-04-30 18:47:37 +08:00
|
|
|
use App\Listeners;
|
2016-08-28 10:05:21 +08:00
|
|
|
use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider;
|
|
|
|
|
|
|
|
class EventServiceProvider extends ServiceProvider
|
|
|
|
{
|
2020-06-06 11:22:16 +08:00
|
|
|
// The event listener mappings for the application.
|
2016-08-28 10:05:21 +08:00
|
|
|
protected $listen = [
|
2019-04-23 23:34:04 +08:00
|
|
|
'App\Events\PlayerRetrieved' => [
|
2020-04-30 18:47:37 +08:00
|
|
|
Listeners\ResetInvalidTextureForPlayer::class,
|
2019-04-23 23:34:04 +08:00
|
|
|
],
|
2019-08-12 15:21:50 +08:00
|
|
|
'App\Events\PluginWasEnabled' => [
|
2020-04-30 18:47:37 +08:00
|
|
|
Listeners\CopyPluginAssets::class,
|
|
|
|
Listeners\GeneratePluginTranslations::class,
|
2019-08-12 15:21:50 +08:00
|
|
|
],
|
2019-09-09 23:08:03 +08:00
|
|
|
'plugin.versionChanged' => [
|
2020-06-06 11:22:16 +08:00
|
|
|
Listeners\CopyPluginAssets::class,
|
|
|
|
Listeners\GeneratePluginTranslations::class,
|
2019-08-12 15:21:50 +08:00
|
|
|
],
|
2019-08-31 09:12:51 +08:00
|
|
|
'App\Events\PluginBootFailed' => [
|
2020-04-30 18:47:37 +08:00
|
|
|
Listeners\NotifyFailedPlugin::class,
|
2019-08-31 09:12:51 +08:00
|
|
|
],
|
2019-12-25 15:59:20 +08:00
|
|
|
'App\Events\RenderingHeader' => [
|
2020-04-30 18:47:37 +08:00
|
|
|
Listeners\SerializeGlobals::class,
|
|
|
|
],
|
2020-05-27 16:37:55 +08:00
|
|
|
'auth.registration.completed' => [
|
|
|
|
Listeners\SendEmailVerification::class,
|
|
|
|
],
|
2020-06-07 10:11:35 +08:00
|
|
|
'texture.privacy.updated' => [
|
|
|
|
Listeners\ResetPlayers::class,
|
|
|
|
Listeners\CleanUpCloset::class,
|
|
|
|
],
|
|
|
|
'texture.deleted' => [
|
|
|
|
Listeners\UpdateScoreForDeletedTexture::class,
|
|
|
|
Listeners\ResetPlayers::class,
|
|
|
|
Listeners\CleanUpCloset::class,
|
|
|
|
],
|
2016-08-28 10:05:21 +08:00
|
|
|
];
|
|
|
|
}
|