Completed
Push — master ( c9b1c3...7c902f )
by Freek
02:52
created

UuidServiceProvider   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 3
dl 0
loc 15
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A boot() 0 7 1
A register() 0 4 1
1
<?php
2
3
namespace Spatie\BinaryUuid;
4
5
use Illuminate\Support\ServiceProvider;
6
use Spatie\BinaryUuid\MySqlGrammar;
7
8
class UuidServiceProvider extends ServiceProvider
9
{
10
    public function boot()
11
    {
12
        /** @var \Illuminate\Database\Connection $connection */
13
        $connection = app('db')->connection();
14
15
        $connection->setSchemaGrammar(new MySqlGrammar());
16
    }
17
18
    public function register()
19
    {
20
        //
21
    }
22
}
23