|
|
@@ -1,29 +0,0 @@
|
|
|
-<?php
|
|
|
-
|
|
|
-namespace App\Module\GameItems\Providers;
|
|
|
-
|
|
|
-use App\Module\Test\Events\TestEvent;
|
|
|
-use App\Module\Test\Listeners\TestEventListener;
|
|
|
-use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider;
|
|
|
-
|
|
|
-class TestServiceProvider extends ServiceProvider
|
|
|
-{
|
|
|
- /**
|
|
|
- * 事件到监听器的映射
|
|
|
- *
|
|
|
- * @var array<class-string, array<int, class-string>>
|
|
|
- */
|
|
|
- protected $listen = [
|
|
|
- TestEvent::class => [
|
|
|
- TestEventListener::class,
|
|
|
- ],
|
|
|
- ];
|
|
|
-
|
|
|
- /**
|
|
|
- * 注册任何事件监听器
|
|
|
- */
|
|
|
- public function boot(): void
|
|
|
- {
|
|
|
- parent::boot();
|
|
|
- }
|
|
|
-}
|