Completed
Push — master ( 0a5a96...ce4a8e )
by Mr
07:57
created

ClientServiceProvider::boot()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 6
ccs 0
cts 6
cp 0
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 2
1
<?php
2
3
namespace Bookeo\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/bookeo-api.php' => config_path('bookeo-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/bookeo-api.php', 'bookeo-api'
30
        );
31
32
        $this->app->bind(ClientWrapper::class);
33
    }
34
}