Completed
Push — master ( 54ccda...232c7c )
by Changwan
04:16
created

ConfigServiceProvider   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 1 Features 0
Metric Value
dl 0
loc 11
ccs 5
cts 5
cp 1
rs 10
c 1
b 1
f 0
wmc 2
lcom 0
cbo 1

2 Methods

Rating   Name   Duplication   Size   Complexity  
A register() 0 4 1
A boot() 0 3 1
1
<?php
2
namespace Wandu\Config;
3
4
use Wandu\Config\Contracts\Config as ConfigContract;
5
use Wandu\DI\ContainerInterface;
6
use Wandu\DI\ServiceProviderInterface;
7
8
class ConfigServiceProvider implements ServiceProviderInterface 
9
{
10 1
    public function register(ContainerInterface $app)
11
    {
12 1
        $app->bind(ConfigContract::class, Config::class);
13 1
    }
14
15 1
    public function boot(ContainerInterface $app)
16
    {
17 1
    }
18
}
19