Completed
Push — master ( e15c58...b150a8 )
by Changwan
07:08
created

MigratorServiceProvider::boot()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 1
dl 0
loc 3
ccs 0
cts 3
cp 0
crap 2
rs 10
c 0
b 0
f 0
1
<?php
2
namespace Wandu\Database\Migrator;
3
4
use Wandu\DI\ContainerInterface;
5
use Wandu\DI\ServiceProviderInterface;
6
use function Wandu\Foundation\config;
7
use function Wandu\Foundation\path;
8
9
class MigratorServiceProvider implements ServiceProviderInterface
10
{
11
    /**
12
     * {@inheritdoc}
13
     */
14
    public function register(ContainerInterface $app)
15
    {
16
        $app->closure(Configuration::class, function () {
17
            return new Configuration([
18
                'connection' => config('database.migrator.connection'),
19
                'table' => config('database.migrator.table'),
20
                'path' => path(config('database.migrator.path')),
21
            ]);
22
        });
23
    }
24
25
    /**
26
     * {@inheritdoc}
27
     */
28
    public function boot(ContainerInterface $app)
29
    {
30
    }
31
}
32