Completed
Push — master ( 7328ed...c4af57 )
by ARCANEDEV
04:44
created

AuthServiceProvider::provides()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 6
ccs 2
cts 2
cp 1
rs 9.4285
cc 1
eloc 2
nc 1
nop 0
crap 1
1
<?php namespace Arcanesoft\Auth;
2
3
use Arcanesoft\Core\Bases\PackageServiceProvider;
4
5
/**
6
 * Class     AuthServiceProvider
7
 *
8
 * @package  Arcanesoft\Auth
9
 * @author   ARCANEDEV <[email protected]>
10
 */
11
class AuthServiceProvider extends PackageServiceProvider
12
{
13
    /* -----------------------------------------------------------------
14
     |  Properties
15
     | -----------------------------------------------------------------
16
     */
17
18
    /**
19
     * Package name.
20
     *
21
     * @var string
22
     */
23
    protected $package = 'auth';
24
25
    /* -----------------------------------------------------------------
26
     |  Main Methods
27
     | -----------------------------------------------------------------
28
     */
29
30
    /**
31
     * Register the service provider.
32
     */
33 12
    public function register()
34
    {
35 12
        parent::register();
36
37 12
        $this->registerConfig();
38 12
        $this->registerSidebarItems();
39
40 12
        $this->registerProviders([
41 12
            Providers\EventServiceProvider::class,
42 6
            Providers\PackagesServiceProvider::class,
43 6
            Providers\AuthorizationServiceProvider::class,
44 6
            Providers\ViewComposerServiceProvider::class,
45 6
            Providers\RouteServiceProvider::class,
46 6
            Providers\ValidatorServiceProvider::class,
47 6
        ]);
48 12
        $this->registerConsoleServiceProvider(Providers\CommandServiceProvider::class);
49 12
    }
50
51
    /**
52
     * Boot the service provider.
53
     */
54 12
    public function boot()
55
    {
56 12
        parent::boot();
57
58
        // Publishes
59 12
        $this->publishConfig();
60 12
        $this->publishViews();
61 12
        $this->publishTranslations();
62 12
        $this->publishSidebarItems();
63 12
    }
64
65
    /**
66
     * Get the services provided by the provider.
67
     *
68
     * @return array
69
     */
70 2
    public function provides()
71
    {
72
        return [
73
            //
74 2
        ];
75
    }
76
}
77