2017-12-06 11:51:15 +08:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Modules\Sample\Providers;
|
|
|
|
|
|
|
|
use App\Events\TestEvent;
|
|
|
|
use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider;
|
2019-08-27 00:32:46 +08:00
|
|
|
use Modules\Sample\Listeners\TestEventListener;
|
2017-12-06 11:51:15 +08:00
|
|
|
|
|
|
|
class EventServiceProvider extends ServiceProvider
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* The event listener mappings for the application.
|
|
|
|
*/
|
|
|
|
protected $listen = [
|
|
|
|
TestEvent::class => [TestEventListener::class],
|
|
|
|
];
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Register any events for your application.
|
|
|
|
*/
|
|
|
|
public function boot()
|
|
|
|
{
|
|
|
|
parent::boot();
|
|
|
|
}
|
|
|
|
}
|