Completed
Push — master ( 9e9693...9e4b3d )
by Emad
02:46
created

LaravelUuidServiceProvider::boot()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
dl 0
loc 4
rs 10
c 1
b 0
f 0
cc 1
eloc 1
nc 1
nop 0
1
<?php
2
3
namespace Emadadly\LaravelUuid;
4
5
use Illuminate\Support\ServiceProvider;
6
7
class LaravelUuidServiceProvider extends ServiceProvider
8
{
9
     /**
10
     * Indicates if loading of the provider is deferred.
11
     *
12
     * @var bool
13
     */
14
    protected $defer = false;
15
16
    /**
17
     * Perform post-registration booting of services.
18
     *
19
     * @return void
20
     */
21
    public function boot()
22
    {
23
  //
24
    }
25
26
    /**
27
     * Register any package services.
28
     *
29
     * @return void
30
     */
31
    public function register()
32
    {
33
        $this->app->singleton(UUIDManager::class, function () {
34
            return new UUIDManager();
35
        });
36
    }
37
}
38