BattlenetApiServiceProvider   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 30
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Importance

Changes 0
Metric Value
wmc 2
lcom 1
cbo 2
dl 0
loc 30
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A boot() 0 11 1
A register() 0 5 1
1
<?php
2
3
namespace Xklusive\BattlenetApi;
4
5
use Illuminate\Support\ServiceProvider;
6
use Xklusive\BattlenetApi\Services\WowService;
7
use Xklusive\BattlenetApi\Services\DiabloService;
8
9
class BattlenetApiServiceProvider extends ServiceProvider
10
{
11
    /**
12
     * Bootstrap the application services.
13
     *
14
     * @return void
15
     */
16
    public function boot()
17
    {
18
        $this->publishes([
19
            __DIR__.'/../resources/config/battlenet-api.php' => config_path('battlenet-api.php'),
20
        ], 'config');
21
22
        $this->mergeConfigFrom(
23
            __DIR__.'/../resources/config/battlenet-api.php',
24
            'battlenet-api'
25
        );
26
    }
27
28
    /**
29
     * Register the application services.
30
     *
31
     * @return void
32
     */
33
    public function register()
34
    {
35
        $this->app->bind('WowService', WowService::class);
36
        $this->app->bind('DiabloService', DiabloService::class);
37
    }
38
}
39