TestServiceProvider::register()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 1
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: mindkicker
5
 * Date: 16.02.16
6
 * Time: 16:03
7
 */
8
9
namespace Lebran;
10
11
use Lebran\Container\ServiceProviderInterface;
12
13
class TestServiceProvider implements ServiceProviderInterface
14
{
15
16
    /**
17
     * Lebran\Container service provider interface.
18
     *
19
     * This method should only be used to configure services and parameters.
20
     *
21
     * @param Container $di The container instance.
22
     *
23
     * @return void
24
     */
25
    public function register(Container $di)
26
    {
27
        $di->set('test', new TestService());
28
    }
29
}