EventServiceProvider   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 27
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 9
dl 0
loc 27
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A boot() 0 3 1
1
<?php
2
3
namespace Yeelight\Providers;
4
5
use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider;
6
7
/**
8
 * Class EventServiceProvider
9
 *
10
 * @category Yeelight
11
 *
12
 * @package Yeelight\Providers
13
 *
14
 * @author Sheldon Lee <[email protected]>
15
 *
16
 * @license https://opensource.org/licenses/MIT MIT
17
 *
18
 * @link https://www.yeelight.com
19
 */
20
class EventServiceProvider extends ServiceProvider
21
{
22
    /**
23
     * The event listener mappings for the application.
24
     *
25
     * @var array
26
     */
27
    protected $listen = [
28
        'Yeelight\Events\Event' => [
29
            'Yeelight\Listeners\EventListener',
30
        ],
31
        'Laravel\Passport\Events\AccessTokenCreated' => [
32
            'Yeelight\Listeners\Auth\RevokeOldTokens',
33
        ],
34
        'Laravel\Passport\Events\RefreshTokenCreated' => [
35
            'Yeelight\Listeners\Auth\PruneOldTokens',
36
        ],
37
    ];
38
39
    /**
40
     * Register any events for your application.
41
     *
42
     * @return void
43
     */
44
    public function boot()
45
    {
46
        parent::boot();
47
48
        //
49
    }
50
}
51