Completed
Push — master ( 7d23f4...5fc267 )
by Mr
05:55
created

ClientServiceProvider   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Importance

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

2 Methods

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