RedeemCodesServiceProvider::boot()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 9
Code Lines 7

Duplication

Lines 0
Ratio 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
eloc 7
dl 0
loc 9
rs 10
c 2
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
namespace Furic\RedeemCodes;
4
5
use Illuminate\Support\ServiceProvider;
6
7
class RedeemCodesServiceProvider extends ServiceProvider
8
{
9
10
    /**
11
     * Bootstrap the application services.
12
     *
13
     * @return void
14
     */
15
    public function boot()
16
    {
17
        $this->loadRoutesFrom(__DIR__.'/../routes/web.php');
18
        $this->loadRoutesFrom(__DIR__.'/../routes/api.php');
19
        $this->loadMigrationsFrom(__DIR__.'/../database/migrations');
20
        $this->loadViewsFrom(__DIR__.'/../resources/views', 'redeem-codes');
21
        $this->publishes([
22
            __DIR__.'/../resources/views' => resource_path('views/vendor/redeem-codes'),
23
        ], 'views');
24
        // $this->publishes([
25
        //     __DIR__ . '/../config/redeem-codes.php' => config_path('redeem-codes.php'),
26
        // ], 'config');
27
    }
28
29
    /**
30
     * Register the application services.
31
     *
32
     * @return void
33
     */
34
    public function register()
35
    {
36
        $this->app->make('Furic\RedeemCodes\Http\Controllers\RedeemCodeController');
37
        $this->app->make('Furic\RedeemCodes\Http\Controllers\RedeemController');
38
        // $this->mergeConfigFrom(
39
        //     __DIR__ . '/../config/redeem-codes.php', 'redeem-codes'
40
        // );
41
    }
42
    
43
}