mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-09 23:24:06 -08:00
802dc9240d
PHP 5.5.9+ adds the new static `class` property which provides the fully qualified class name. This is preferred over using class name strings as these references are checked by the parser.
36 lines
777 B
PHP
36 lines
777 B
PHP
<?php
|
|
|
|
namespace App\Providers;
|
|
|
|
use App\Listeners\CheckoutableListener;
|
|
use App\Listeners\LogListener;
|
|
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,
|
|
],
|
|
|
|
'Illuminate\Auth\Events\Failed' => [
|
|
\App\Listeners\LogFailedLogin::class,
|
|
],
|
|
];
|
|
|
|
/**
|
|
* The subscriber classes to register.
|
|
*
|
|
* @var array
|
|
*/
|
|
protected $subscribe = [
|
|
LogListener::class,
|
|
CheckoutableListener::class,
|
|
];
|
|
}
|