Passed
Push — main ( ad3cdf...393ddd )
by Richard
03:26
created

GameEssentialsServiceProvider   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 27
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
eloc 6
c 1
b 0
f 0
dl 0
loc 27
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A register() 0 5 1
A boot() 0 4 1
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__.'/../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->app->make('Furic\GameEssentials\Http\Controllers\PlayerGameController');
34
        // $this->mergeConfigFrom(
35
        //     __DIR__ . '/../config/game-essentials.php', 'game-essentials'
36
        // );
37
    }
38
39
}