CategorizableServiceProvider::boot()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 10

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 7
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 10
ccs 7
cts 7
cp 1
rs 9.9332
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 1
1
<?php
2
namespace UniSharp\Categorizable\Providers;
3
4
use Illuminate\Support\ServiceProvider;
5
use Cviebrock\EloquentTaggable\Services\TagService;
6
use UniSharp\Categorizable\Services\TagService as UnisharpTagService;
7
8
class CategorizableServiceProvider extends ServiceProvider
9
{
10 36
    public function boot()
11
    {
12 36
        $this->loadMigrationsFrom(
13 36
            __DIR__.'/../../database/migrations'
14
        );
15
16 36
        $this->publishes([
17 36
            __DIR__ . '/../../resources/config/categorizable.php' => config_path('categorizable.php'),
18 36
        ], 'config');
19 36
    }
20 36
    public function register()
21
    {
22 36
        $this->mergeConfigFrom(__DIR__ . '/../../resources/config/categorizable.php', 'categorizable');
23 36
    }
24
}
25