mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
32 lines
747 B
PHP
32 lines
747 B
PHP
<?php
|
|
|
|
namespace App\Providers;
|
|
|
|
use App\Listeners\MarkNotificationsRead;
|
|
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'],
|
|
\App\Events\UserCreated::class => [MarkNotificationsRead::class],
|
|
];
|
|
|
|
/**
|
|
* Register any events for your application.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function boot()
|
|
{
|
|
|
|
//
|
|
}
|
|
}
|