Completed
Push — master ( abd274...070f80 )
by ARCANEDEV
10s
created

SeoHelperServiceProvider   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 60
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
dl 0
loc 60
c 1
b 0
f 0
ccs 13
cts 13
cp 1
rs 10
wmc 3
lcom 1
cbo 1

3 Methods

Rating   Name   Duplication   Size   Complexity  
A register() 0 10 1
A boot() 0 6 1
A provides() 0 6 1
1
<?php namespace Arcanedev\SeoHelper;
2
3
use Arcanedev\Support\PackageServiceProvider as ServiceProvider;
4
5
/**
6
 * Class     SeoHelperServiceProvider
7
 *
8
 * @package  Arcanedev\SeoHelper
9
 * @author   ARCANEDEV <[email protected]>
10
 */
11
class SeoHelperServiceProvider extends ServiceProvider
12
{
13
    /* -----------------------------------------------------------------
14
     |  Properties
15
     | -----------------------------------------------------------------
16
     */
17
    /**
18
     * Package name.
19
     *
20
     * @var string
21
     */
22
    protected $package = 'seo-helper';
23
24
    /**
25
     * Indicates if loading of the provider is deferred.
26
     *
27
     * @var bool
28
     */
29
    protected $defer   = true;
30
31
    /* -----------------------------------------------------------------
32
     |  Main Methods
33
     | -----------------------------------------------------------------
34
     */
35
    /**
36
     * Register the service provider.
37
     */
38 429
    public function register()
39
    {
40 429
        parent::register();
41
42 429
        $this->registerConfig();
43
44 429
        $this->registerProvider(Providers\UtilityServiceProvider::class);
45
46 429
        $this->singleton(Contracts\SeoHelper::class, SeoHelper::class);
47 429
    }
48
49
    /**
50
     * Boot the service provider.
51
     */
52 429
    public function boot()
53
    {
54 429
        parent::boot();
55
56 429
        $this->publishConfig();
57 429
    }
58
59
    /**
60
     * Get the services provided by the provider.
61
     *
62
     * @return array
63
     */
64 6
    public function provides()
65
    {
66
        return [
67 6
            Contracts\SeoHelper::class,
68 2
        ];
69
    }
70
}
71