Completed
Push — master ( 2f25ac...247007 )
by ARCANEDEV
32s queued 10s
created

RouteViewerServiceProvider::provides()   A

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
dl 0
loc 6
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 1
1
<?php namespace Arcanedev\RouteViewer;
2
3
use Arcanedev\Support\Providers\PackageServiceProvider;
4
5
/**
6
 * Class     RouteViewerServiceProvider
7
 *
8
 * @package  Arcanedev\RouteViewer
9
 * @author   ARCANEDEV <[email protected]>
10
 */
11
class RouteViewerServiceProvider extends PackageServiceProvider
12
{
13
    /* -----------------------------------------------------------------
14
     |  Properties
15
     | -----------------------------------------------------------------
16
     */
17
18
    /**
19
     * Package name.
20
     *
21
     * @var string
22
     */
23
    protected $package = 'route-viewer';
24
25
    /* -----------------------------------------------------------------
26
     |  Main Methods
27
     | -----------------------------------------------------------------
28
     */
29
30
    /**
31
     * Register the service provider.
32
     */
33 24
    public function register(): void
34
    {
35 24
        parent::register();
36
37 24
        $this->registerConfig();
38
39 24
        $this->registerProvider(Providers\RouteServiceProvider::class);
40 24
    }
41
42
    /**
43
     * Boot the service provider.
44
     */
45 24
    public function boot(): void
46
    {
47 24
        $this->publishConfig();
48 24
        $this->publishViews();
49 24
    }
50
}
51