Completed
Push — master ( 15d27a...559485 )
by Mr
04:51
created

ClientServiceProvide::register()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 8
ccs 0
cts 5
cp 0
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 2
1
<?php
2
3
namespace RouterOS\Laravel;
4
5
use Illuminate\Support\ServiceProvider as BaseServiceProvider;
6
7
class ClientServiceProvide extends BaseServiceProvider
8
{
9
    /**
10
     * Bootstrap any application services.
11
     *
12
     * @return void
13
     */
14
    public function boot()
15
    {
16
        $this->publishes([
17
            __DIR__ . '/../configs/routeros-api.php' => config_path('routeros-api.php'),
18
        ]);
19
    }
20
21
    /**
22
     * Register any application services.
23
     *
24
     * @return void
25
     */
26
    public function register()
27
    {
28
        $this->mergeConfigFrom(
29
            __DIR__ . '/../configs/routeros-api.php', 'routeros-api'
30
        );
31
32
        $this->app->bind(ClientWrapper::class);
33
    }
34
}
35