AuthServiceProvider::boot()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 4
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 4
b 0
f 0
nc 1
nop 0
dl 0
loc 3
rs 10
1
<?php
2
3
namespace FaithGen\Sermons\Providers;
4
5
use FaithGen\Sermons\Models\Sermon;
6
use FaithGen\Sermons\Policies\SermonPolicy;
7
use Illuminate\Foundation\Support\Providers\AuthServiceProvider as ServiceProvider;
8
9
class AuthServiceProvider extends ServiceProvider
10
{
11
    protected $policies = [
12
        Sermon::class => SermonPolicy::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