2021-10-04 16:24:39 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Providers;
|
|
|
|
|
2021-10-19 14:35:01 +00:00
|
|
|
use App\Events\InsuranceSubscribed;
|
|
|
|
use App\Listeners\NotifyUser;
|
2021-10-04 16:24:39 +00:00
|
|
|
use Laravel\Lumen\Providers\EventServiceProvider as ServiceProvider;
|
|
|
|
|
|
|
|
class EventServiceProvider extends ServiceProvider
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* The event listener mappings for the application.
|
|
|
|
*
|
|
|
|
* @var array
|
|
|
|
*/
|
|
|
|
protected $listen = [
|
|
|
|
\App\Events\ExampleEvent::class => [
|
|
|
|
\App\Listeners\ExampleListener::class,
|
|
|
|
],
|
2021-10-19 14:35:01 +00:00
|
|
|
InsuranceSubscribed::class => [
|
|
|
|
NotifyUser::class
|
|
|
|
]
|
2021-10-04 16:24:39 +00:00
|
|
|
];
|
|
|
|
}
|