AuthorizationServiceProvider::boot()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 1

Importance

Changes 3
Bugs 0 Features 0
Metric Value
eloc 3
dl 0
loc 6
ccs 4
cts 4
cp 1
rs 10
c 3
b 0
f 0
cc 1
nc 1
nop 0
crap 1
1
<?php namespace Arcanesoft\Foundation\Providers;
2
3
use Arcanedev\Support\Providers\AuthorizationServiceProvider as ServiceProvider;
4
use Arcanesoft\Foundation\Policies\LogViewerPolicy;
5
use Arcanesoft\Foundation\Policies\RouteViewerPolicy;
6
7
/**
8
 * Class     AuthorizationServiceProvider
9
 *
10
 * @package  Arcanesoft\Foundation\Providers
11
 * @author   ARCANEDEV <[email protected]>
12
 */
13
class AuthorizationServiceProvider extends ServiceProvider
14
{
15
    /* -----------------------------------------------------------------
16
     |  Main Methods
17
     | -----------------------------------------------------------------
18
     */
19
20
    /**
21
     * Register any application authentication / authorization services.
22
     */
23 14
    public function boot()
24
    {
25 14
        $this->registerPolicies();
26
27 14
        $this->defineMany(LogViewerPolicy::class, LogViewerPolicy::policies());
28 14
        $this->defineMany(RouteViewerPolicy::class, RouteViewerPolicy::policies());
29
30
        // TODO: Add more policies for other foundation features.
31 14
    }
32
}
33