2017-06-09 02:28:26 +08:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Providers;
|
|
|
|
|
2018-03-02 06:20:13 +08:00
|
|
|
use App\Listeners\FinanceEvents;
|
|
|
|
use App\Listeners\NotificationEvents;
|
2018-02-21 12:33:09 +08:00
|
|
|
use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider;
|
2018-03-02 06:20:13 +08:00
|
|
|
use App\Listeners\ExpenseListener;
|
|
|
|
use App\Events\Expenses;
|
2017-06-09 02:28:26 +08:00
|
|
|
|
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 = [
|
2018-03-02 06:20:13 +08:00
|
|
|
Expenses::class => [
|
|
|
|
ExpenseListener::class
|
|
|
|
],
|
2017-06-09 02:28:26 +08:00
|
|
|
];
|
|
|
|
|
2017-12-23 02:00:57 +08:00
|
|
|
protected $subscribe = [
|
2018-03-02 06:20:13 +08:00
|
|
|
FinanceEvents::class,
|
|
|
|
NotificationEvents::class,
|
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();
|
|
|
|
}
|
|
|
|
}
|