AuthorizationServiceProvider   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 4
Bugs 0 Features 0
Metric Value
wmc 1
eloc 4
dl 0
loc 16
ccs 4
cts 4
cp 1
rs 10
c 4
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A boot() 0 6 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