invoiceninja/app/Providers/EventServiceProvider.php

43 lines
766 B
PHP
Raw Normal View History

2018-10-04 20:10:43 +03:00
<?php
namespace App\Providers;
2018-10-24 14:50:15 +11:00
use App\Events\User\UserCreated;
use App\Listeners\SendVerificationNotification;
2018-10-04 20:10:43 +03:00
use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider;
class EventServiceProvider extends ServiceProvider
{
/**
* The event listener mappings for the application.
*
* @var array
*/
protected $listen = [
2018-10-24 14:50:15 +11:00
UserCreated::class => [
SendVerificationNotification::class,
]
];
/**
* The subscriber classes to register.
*
* @var array
*/
protected $subscribe = [
2018-10-04 20:10:43 +03:00
];
/**
* Register any events for your application.
*
* @return void
*/
public function boot()
{
parent::boot();
//
}
}