ServiceProvider::boot()   A
last analyzed

Complexity

Conditions 2
Paths 2

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 2
eloc 4
nc 2
nop 0
dl 0
loc 6
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace LaravelIproSoftwareApi;
4
5
class ServiceProvider extends \Illuminate\Support\ServiceProvider
6
{
7
    /**
8
     * Bootstrap the application services.
9
     * @codeCoverageIgnore
10
     */
11
    public function boot()
12
    {
13
        if ($this->app->runningInConsole()) {
14
            $this->publishes([
15
                __DIR__.'/../config/iprosoftware-api.php' => config_path('iprosoftware-api.php'),
16
            ], 'config');
17
        }
18
    }
19
20
    /**
21
     * Register the application services.
22
     * @codeCoverageIgnore
23
     */
24
    public function register()
25
    {
26
        $this->mergeConfigFrom(__DIR__.'/../config/iprosoftware-api.php', 'iprosoftware-api');
27
28
        $this->app->bind('iprosoftware', function () {
29
            return new IproSoftware();
30
        });
31
    }
32
}
33