TaggingServiceProvider::boot()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 3
Bugs 0 Features 0
Metric Value
cc 1
eloc 4
c 3
b 0
f 0
nc 1
nop 0
dl 0
loc 7
rs 10
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->loadMigrationsFrom(realpath(__DIR__.'/../../migrations'));
27
    }
28
29
    /**
30
     * Register the service provider.
31
     *
32
     * @return void
33
     */
34
    public function register()
35
    {
36
        $this->commands($this->commands);
37
    }
38
}
39