Completed
Push — master ( 603a9f...7527cc )
by Changwan
05:44
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
c 0
b 0
f 0
nc 1
nop 1
dl 0
loc 3
ccs 0
cts 3
cp 0
crap 2
rs 10
1
<?php
2
namespace Wandu\Migrator;
3
4
use Wandu\Config\Contracts\Config;
5
use Wandu\DI\ContainerInterface;
6
use Wandu\DI\ServiceProviderInterface;
7
8
class MigratorServiceProvider implements ServiceProviderInterface
9
{
10
    /**
11
     * {@inheritdoc}
12
     */
13
    public function register(ContainerInterface $app)
14
    {
15
        $app->bind(Configuration::class, function (Config $config) {
16
            return new Configuration([
17
                'connection' => $config->get('database.migrator.connection'),
18
                'table' => $config->get('database.migrator.table'),
19
                'path' => $config->get('database.migrator.path'),
20
            ]);
21
        });
22
    }
23
24
    /**
25
     * {@inheritdoc}
26
     */
27
    public function boot(ContainerInterface $app)
28
    {
29
    }
30
}
31