blessing-skin-server/app/Providers/EventServiceProvider.php

43 lines
1.3 KiB
PHP
Raw Normal View History

2016-08-28 10:05:21 +08:00
<?php
namespace App\Providers;
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 = [
'App\Events\PlayerRetrieved' => [
Listeners\ResetInvalidTextureForPlayer::class,
],
2019-08-12 15:21:50 +08:00
'App\Events\PluginWasEnabled' => [
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' => [
Listeners\NotifyFailedPlugin::class,
2019-08-31 09:12:51 +08:00
],
2019-12-25 15:59:20 +08:00
'App\Events\RenderingHeader' => [
Listeners\SerializeGlobals::class,
],
'auth.registration.completed' => [
Listeners\SendEmailVerification::class,
],
'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
];
}