2017-06-09 02:28:26 +08:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Providers;
|
|
|
|
|
|
|
|
use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider;
|
|
|
|
|
2017-12-23 02:00:57 +08:00
|
|
|
|
2017-06-09 02:28:26 +08:00
|
|
|
class EventServiceProvider extends ServiceProvider
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* The event listener mappings for the application.
|
|
|
|
*
|
|
|
|
* @var array
|
|
|
|
*/
|
|
|
|
protected $listen = [
|
2017-12-02 23:19:58 +08:00
|
|
|
/*'App\Events\TestEvent' => [
|
2017-06-09 02:28:26 +08:00
|
|
|
'App\Listeners\EventListener',
|
2017-12-02 23:19:58 +08:00
|
|
|
],*/
|
2017-06-09 02:28:26 +08:00
|
|
|
];
|
|
|
|
|
2017-12-23 02:00:57 +08:00
|
|
|
protected $subscribe = [
|
2017-12-31 10:39:17 +08:00
|
|
|
'App\Listeners\NotificationEventListener',
|
2017-12-23 02:00:57 +08:00
|
|
|
];
|
|
|
|
|
2017-06-09 02:28:26 +08:00
|
|
|
/**
|
|
|
|
* Register any events for your application.
|
|
|
|
*
|
|
|
|
* @return void
|
|
|
|
*/
|
|
|
|
public function boot()
|
|
|
|
{
|
|
|
|
parent::boot();
|
|
|
|
}
|
|
|
|
}
|