Test Setup Failed
Pull Request — master (#150)
by Nick
14:47 queued 06:28
created

AuthServiceProvider::boot()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 1
c 1
b 0
f 0
dl 0
loc 3
ccs 2
cts 2
cp 1
rs 10
cc 1
nc 1
nop 0
crap 1
1
<?php
2
/**
3
 * Auth Service Provider.
4
 *
5
 * @package App\Providers
6
 *
7
 * @author    Taylor Otwell <[email protected]>
8
 * @copyright 2018-2020 Nick Menke
9
 *
10
 * @link https://github.com/nlmenke/vertebrae
11
 */
12
13
declare(strict_types=1);
14
15
namespace App\Providers;
16
17
use Illuminate\Foundation\Support\Providers\AuthServiceProvider as ServiceProvider;
18
19
/**
20
 * The Authentication / Authorization service provider.
21
 *
22
 * This service provider is responsible for bootstrapping and registering the
23
 * application's authentication / authorization services.
24
 *
25
 * @since 0.0.0-framework introduced
26
 */
27
class AuthServiceProvider extends ServiceProvider
28
{
29
    /**
30
     * The policy mappings for the application.
31
     *
32
     * @var array
33
     */
34
    protected $policies = [
35
        // 'App\Model' => 'App\Policies\ModelPolicy',
36
    ];
37
38
    /**
39
     * Register any authentication / authorization services.
40
     *
41
     * @return void
42
     */
43 33
    public function boot(): void
44
    {
45 33
        $this->registerPolicies();
46 33
    }
47
}
48