Completed
Push — master ( 96b827...e9016c )
by ARCANEDEV
15:51
created

AuthorizationServiceProvider   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 5

Importance

Changes 0
Metric Value
wmc 1
c 0
b 0
f 0
lcom 0
cbo 5
dl 0
loc 20
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A boot() 0 9 1
1
<?php namespace Arcanesoft\Seo\Providers;
2
3
use Arcanedev\Support\Providers\AuthorizationServiceProvider as ServiceProvider;
4
use Arcanesoft\Seo\Policies\DashboardPolicy;
5
use Arcanesoft\Seo\Policies\FootersPolicy;
6
use Arcanesoft\Seo\Policies\MetasPolicy;
7
use Arcanesoft\Seo\Policies\PagesPolicy;
8
9
/**
10
 * Class AuthorizationServiceProvider
11
 *
12
 * @package  Arcanesoft\Seo\Providers
13
 * @author   ARCANEDEV <[email protected]>
14
 */
15
class AuthorizationServiceProvider extends ServiceProvider
16
{
17
    /* -----------------------------------------------------------------
18
     |  Main Methods
19
     | -----------------------------------------------------------------
20
     */
21
22
    /**
23
     * Register any application authentication / authorization services.
24
     */
25
    public function boot()
26
    {
27
        parent::registerPolicies();
28
29
        $this->defineMany(DashboardPolicy::class, DashboardPolicy::policies());
30
        $this->defineMany(PagesPolicy::class,     PagesPolicy::policies());
31
        $this->defineMany(FootersPolicy::class,   FootersPolicy::policies());
32
        $this->defineMany(MetasPolicy::class,     MetasPolicy::policies());
33
    }
34
}
35