SwooleServiceProvider   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A register() 0 6 1
1
<?php
2
/**
3
 * @author    jan huang <[email protected]>
4
 * @copyright 2016
5
 *
6
 * @see      https://www.github.com/janhuang
7
 * @see      https://fastdlabs.com
8
 */
9
10
namespace FastD\ServiceProvider;
11
12
use FastD\Container\Container;
13
use FastD\Container\ServiceProviderInterface;
14
15
/**
16
 * Class SwooleServiceProvider.
17
 */
18
class SwooleServiceProvider implements ServiceProviderInterface
19
{
20
    /**
21
     * @param Container $container
22
     *
23
     * @return mixed
24
     */
25 1
    public function register(Container $container)
26
    {
27 1
        config()->merge([
28 1
            'server' => load(app()->getPath().'/config/server.php'),
29 1
        ]);
30 1
    }
31
}
32