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

ConfigServiceProvider::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\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