Completed
Branch ci (563354)
by Brian
14:30
created

UuidServiceProvider::boot()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 5
CRAP Score 1

Importance

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