GameEssentialsServiceProvider::boot()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 2
c 0
b 0
f 0
dl 0
loc 4
rs 10
cc 1
nc 1
nop 0
1
<?php
2
3
namespace Furic\GameEssentials;
4
5
use Illuminate\Support\ServiceProvider;
6
7
class GameEssentialsServiceProvider 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/api.php');
18
        $this->loadMigrationsFrom(__DIR__.'/../migrations');
19
        // $this->publishes([
20
        //     __DIR__ . '/../config/game-essentials.php' => config_path('game-essentials.php'),
21
        // ]);
22
    }
23
24
    /**
25
     * Register the application services.
26
     *
27
     * @return void
28
     */
29
    public function register()
30
    {
31
        $this->app->make('Furic\GameEssentials\Http\Controllers\GameController');
32
        $this->app->make('Furic\GameEssentials\Http\Controllers\PlayerController');
33
        // $this->mergeConfigFrom(
34
        //     __DIR__ . '/../config/game-essentials.php', 'game-essentials'
35
        // );
36
    }
37
38
}