Files
librenms-librenms/app/Providers/EventServiceProvider.php
T

33 lines
770 B
PHP
Raw Normal View History

2018-05-09 08:05:17 -05:00
<?php
namespace App\Providers;
2019-02-15 09:00:07 -06:00
use App\Listeners\MarkNotificationsRead;
2018-05-09 08:05:17 -05:00
use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider;
class EventServiceProvider extends ServiceProvider
{
/**
* The event listener mappings for the application.
*
* @var array
*/
protected $listen = [
\Illuminate\Auth\Events\Login::class => ['App\Listeners\AuthEventListener@login'],
\Illuminate\Auth\Events\Logout::class => ['App\Listeners\AuthEventListener@logout'],
2019-02-15 09:00:07 -06:00
\App\Events\UserCreated::class => [MarkNotificationsRead::class]
2018-05-09 08:05:17 -05:00
];
/**
* Register any events for your application.
*
* @return void
*/
public function boot()
{
parent::boot();
//
}
}