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

UuidServiceProvider::boot()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 7
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 0
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