TaggingServiceProvider   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Importance

Changes 3
Bugs 0 Features 0
Metric Value
eloc 10
c 3
b 0
f 0
dl 0
loc 28
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A register() 0 3 1
A boot() 0 9 1
1
<?php
2
3
namespace Conner\Tagging\Providers;
4
5
use Conner\Tagging\Console\Commands\GenerateTagGroup;
6
use Illuminate\Support\ServiceProvider;
7
8
/**
9
 * Copyright (C) 2014 Robert Conner
10
 */
11
class TaggingServiceProvider extends ServiceProvider
12
{
13
    protected $commands = [
14
        GenerateTagGroup::class
15
    ];
16
17
    /**
18
     * Bootstrap the application events.
19
     */
20
    public function boot()
21
    {
22
        $this->publishes([
23
            __DIR__.'/../../config/tagging.php' => config_path('tagging.php')
24
        ], 'config');
25
26
        $this->publishes([
27
            __DIR__.'/../../migrations/' => database_path('migrations')
28
        ], 'migrations');
29
    }
30
31
    /**
32
     * Register the service provider.
33
     *
34
     * @return void
35
     */
36
    public function register()
37
    {
38
        $this->commands($this->commands);
39
    }
40
}
41