Completed
Push — master ( 138eb0...99e1cf )
by ARCANEDEV
10s
created

AuthServiceProvider::getBasePath()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
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
0 ignored issues
show
Bug introduced by
There is one abstract method getBasePath in this class; you could implement it, or declare this class as abstract.
Loading history...
12
{
13
    /* ------------------------------------------------------------------------------------------------
14
     |  Properties
15
     | ------------------------------------------------------------------------------------------------
16
     */
17
    /**
18
     * Package name.
19
     *
20
     * @var string
21
     */
22
    protected $package = 'auth';
23
24
    /* ------------------------------------------------------------------------------------------------
25
     |  Main Functions
26
     | ------------------------------------------------------------------------------------------------
27
     */
28
    /**
29
     * Register the service provider.
30
     */
31 12
    public function register()
32
    {
33 12
        parent::register();
34
35 12
        $this->registerConfig();
36 12
        $this->registerSidebarItems();
37 12
        $this->registerProviders([
38 12
            Providers\EventServiceProvider::class,
39 6
            Providers\PackagesServiceProvider::class,
40 6
            Providers\AuthorizationServiceProvider::class,
41 6
            Providers\ViewComposerServiceProvider::class,
42 6
        ]);
43
44 12
        $this->registerConsoleServiceProvider(Providers\CommandServiceProvider::class);
45 12
    }
46
47
    /**
48
     * Boot the service provider.
49
     */
50 12
    public function boot()
51
    {
52 12
        parent::boot();
53
54 12
        $this->registerProviders([
55 12
            Providers\RouteServiceProvider::class,
56 6
            Providers\ValidatorServiceProvider::class,
57 6
        ]);
58
59
        // Publishes
60 12
        $this->publishConfig();
61 12
        $this->publishViews();
62 12
        $this->publishTranslations();
63 12
        $this->publishSidebarItems();
64 12
    }
65
66
    /**
67
     * Get the services provided by the provider.
68
     *
69
     * @return array
70
     */
71 2
    public function provides()
72
    {
73
        return [
74
            //
75 2
        ];
76
    }
77
}
78