Completed
Push — master ( 66ae31...360c87 )
by ARCANEDEV
11s
created

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