SwooleServiceProvider::register()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 5
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 3
nc 1
nop 1
dl 0
loc 6
ccs 5
cts 5
cp 1
crap 1
rs 9.4285
c 0
b 0
f 0
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