LaravelSeoServiceProvider::provides()   A
last analyzed

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
dl 0
loc 6
ccs 2
cts 2
cp 1
rs 9.4285
c 1
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
crap 1
1
<?php namespace Arcanedev\LaravelSeo;
2
3
use Arcanedev\Support\PackageServiceProvider;
4
5
/**
6
 * Class     LaravelSeoServiceProvider
7
 *
8
 * @package  Arcanedev\LaravelSeo
9
 * @author   ARCANEDEV <[email protected]>
10
 */
11
class LaravelSeoServiceProvider extends PackageServiceProvider
12
{
13
    /* -----------------------------------------------------------------
14
     |  Properties
15
     | -----------------------------------------------------------------
16
     */
17
18
    /**
19
     * Package name.
20
     *
21
     * @var string
22
     */
23
    protected $package = 'laravel-seo';
24
25
    /* -----------------------------------------------------------------
26
     |  Main Methods
27
     | -----------------------------------------------------------------
28
     */
29
30
    /**
31
     * Register the service provider.
32
     */
33 58
    public function register()
34
    {
35 58
        parent::register();
36
37 58
        $this->registerConfig();
38
39 58
        $this->registerProvider(Providers\RouteServiceProvider::class);
40
41 58
        $this->singleton(Contracts\RedirectorFactory::class, function ($app) {
42 22
            return new RedirectorManager($app);
43 58
        });
44 58
    }
45
46
    /**
47
     * Boot the service provider.
48
     */
49 58
    public function boot()
50
    {
51 58
        parent::boot();
52
53 58
        $this->publishConfig();
54
55 58
        $this->loadMigrations();
56 58
        $this->loadTranslations();
57 58
    }
58
59
    /**
60
     * Get the services provided by the provider.
61
     *
62
     * @return array
63
     */
64 2
    public function provides()
65
    {
66
        return [
67
            //
68 2
        ];
69
    }
70
}
71