Completed
Pull Request — master (#10)
by Tyler
02:17
created

LERNServiceProvider::boot()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 7
CRAP Score 1

Importance

Changes 3
Bugs 0 Features 0
Metric Value
c 3
b 0
f 0
dl 0
loc 8
rs 9.4285
ccs 7
cts 7
cp 1
cc 1
eloc 5
nc 1
nop 0
crap 1
1
<?php
2
3
namespace Tylercd100\LERN;
4
5
use Illuminate\Support\ServiceProvider;
6
7
class LERNServiceProvider extends ServiceProvider
8
{
9 54
    public function register() {
10 54
        $this->mergeConfigFrom(__DIR__ . '/../config/lern.php', 'lern');
11
12 54
        $this->app->singleton('lern', function() {
13
            return new LERN;
14 54
        });
15 54
    }
16
17 54
    public function boot()
18
    {
19 54
        $this->publishes([
20 54
            __DIR__ . '/../migrations/2016_03_17_000000_create_lern_tables.php' => base_path('database/migrations/2016_03_17_000000_create_lern_tables.php'),
21 54
            __DIR__ . '/../migrations/2016_03_27_000000_add_user_data_and_url_to_lern_tables.php' => base_path('database/migrations/2016_03_27_000000_add_user_data_and_url_to_lern_tables.php'),
22 54
            __DIR__ . '/../config/lern.php' => base_path('config/lern.php'),
23 54
        ]);   
24
    }
25
}