AuthServiceProvider::boot()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 2
Bugs 0 Features 1
Metric Value
cc 1
eloc 1
c 2
b 0
f 1
nc 1
nop 0
dl 0
loc 3
rs 10
1
<?php
2
3
namespace Innoflash\Events\Providers;
4
5
use Illuminate\Foundation\Support\Providers\AuthServiceProvider as ServiceProvider;
6
use Innoflash\Events\Models\Event;
7
use Innoflash\Events\Policies\EventPolicy;
8
9
class AuthServiceProvider extends ServiceProvider
10
{
11
    protected $policies = [
12
        Event::class => EventPolicy::class,
13
    ];
14
15
    /**
16
     * Bootstrap services.
17
     *
18
     * @return void
19
     */
20
    public function boot()
21
    {
22
        $this->registerPolicies();
23
    }
24
25
    /**
26
     * Register services.
27
     *
28
     * @return void
29
     */
30
    public function register()
31
    {
32
        //
33
    }
34
}
35