Completed
Push — master ( be85d1...c4a7ca )
by Mr
04:36
created

ClientServiceProvider   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 2
lcom 1
cbo 2
dl 0
loc 28
ccs 0
cts 9
cp 0
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A boot() 0 6 1
A register() 0 8 1
1
<?php
2
3
namespace RouterOS\Laravel;
4
5
use Illuminate\Support\ServiceProvider as BaseServiceProvider;
6
7
class ClientServiceProvider extends BaseServiceProvider
8
{
9
    /**
10
     * Bootstrap any application services.
11
     *
12
     * @return void
13
     */
14
    public function boot(): void
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(): void
27
    {
28
        $this->mergeConfigFrom(
29
            __DIR__ . '/../../configs/routeros-api.php', 'routeros-api'
30
        );
31
32
        $this->app->bind(ClientWrapper::class);
33
    }
34
}
35