Completed
Push — master ( 815b6a...60c4a7 )
by ARCANEDEV
05:35
created

SeoServiceProvider::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 0
Metric Value
dl 0
loc 6
ccs 2
cts 2
cp 1
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
crap 1
1
<?php namespace Arcanesoft\Seo;
2
3
use Arcanesoft\Core\Bases\PackageServiceProvider;
4
use Arcanesoft\Core\CoreServiceProvider;
5
6
/**
7
 * Class     SeoServiceProvider
8
 *
9
 * @package  Arcanesoft\Seo
10
 * @author   ARCANEDEV <[email protected]>
11
 */
12
class SeoServiceProvider extends PackageServiceProvider
13
{
14
    /* ------------------------------------------------------------------------------------------------
15
     |  Properties
16
     | ------------------------------------------------------------------------------------------------
17
     */
18
    /**
19
     * Package name.
20
     *
21
     * @var string
22
     */
23
    protected $package = 'seo';
24
25
    /* ------------------------------------------------------------------------------------------------
26
     |  Getters & Setters
27
     | ------------------------------------------------------------------------------------------------
28
     */
29
    /**
30
     * Get the base path of the package.
31
     *
32
     * @return string
33
     */
34 16
    public function getBasePath()
35
    {
36 16
        return dirname(__DIR__);
37
    }
38
39
    /* ------------------------------------------------------------------------------------------------
40
     |  Main Functions
41
     | ------------------------------------------------------------------------------------------------
42
     */
43
    /**
44
     * Register the service provider.
45
     */
46 16
    public function register()
47
    {
48 16
        $this->registerConfig();
49 16
        $this->registerSidebarItems();
50 16
        $this->registerProviders([
51 16
            CoreServiceProvider::class,
52 8
            Providers\PackagesServiceProvider::class,
53 8
        ]);
54 16
    }
55
56
    /**
57
     * Boot the service provider.
58
     */
59 16
    public function boot()
60
    {
61 16
        parent::boot();
62
63 16
        $this->registerProvider(Providers\RouteServiceProvider::class);
64
65
        // Publishes
66 16
        $this->publishConfig();
67 16
        $this->publishViews();
68 16
        $this->publishTranslations();
69 16
        $this->publishSidebarItems();
70 16
    }
71
72
    /**
73
     * Get the services provided by the provider.
74
     *
75
     * @return array
76
     */
77 4
    public function provides()
78
    {
79
        return [
80
            //
81 4
        ];
82
    }
83
84
    /* ------------------------------------------------------------------------------------------------
85
     |  Other Functions
86
     | ------------------------------------------------------------------------------------------------
87
     */
88
}
89