Completed
Push — master ( b31514...603a9f )
by Changwan
06:16
created

ConfigServiceProvider   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
dl 0
loc 13
ccs 0
cts 9
cp 0
rs 10
c 0
b 0
f 0
wmc 2
lcom 0
cbo 3

2 Methods

Rating   Name   Duplication   Size   Complexity  
A register() 0 6 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
    public function register(ContainerInterface $app)
11
    {
12
        $app->bind(ConfigContract::class, Config::class)->after(function (Config $config) {
13
            return $config->pushLoader();
0 ignored issues
show
Bug introduced by
The call to pushLoader() misses a required argument $loader.

This check looks for function calls that miss required arguments.

Loading history...
14
        });
15
    }
16
17
    public function boot(ContainerInterface $app)
18
    {
19
    }
20
}
21