snipe-it/app/Providers/EventServiceProvider.php

36 lines
777 B
PHP
Raw Normal View History

2016-03-25 01:18:05 -07:00
<?php
namespace App\Providers;
use App\Listeners\CheckoutableListener;
use App\Listeners\LogListener;
2016-03-25 01:18:05 -07: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' => [
\App\Listeners\LogSuccessfulLogin::class,
],
2018-07-16 23:49:08 -07:00
'Illuminate\Auth\Events\Failed' => [
\App\Listeners\LogFailedLogin::class,
],
];
2018-07-16 23:49:08 -07:00
/**
* The subscriber classes to register.
*
* @var array
*/
protected $subscribe = [
LogListener::class,
CheckoutableListener::class,
];
2016-03-25 01:18:05 -07:00
}