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

AuthorizationServiceProvider::boot()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 9
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 9
rs 9.6666
cc 1
eloc 6
nc 1
nop 0
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