SidebarServiceProvider::provides()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

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