ApiAliasServiceProvider   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 0
Metric Value
dl 0
loc 17
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
 * Created by PhpStorm.
4
 * User: lenovo
5
 * Date: 6/23/2018
6
 * Time: 7:37 PM
7
 */
8
9
namespace TimSDK\Core\ServiceProviders;
10
11
use Pimple\Container;
12
use TimSDK\Core\ApiAlias;
13
use TimSDK\Foundation\ServiceProviders\ServiceProvider;
14
15
class ApiAliasServiceProvider extends ServiceProvider
16
{
17
    /**
18
     * Registers services on the given container.
19
     *
20
     * This method should only be used to configure services and parameters.
21
     * It should not get services.
22
     *
23
     * @param Container $pimple A container instance
24
     */
25
    public function register(Container $pimple)
26
    {
27
        $pimple['apiAlias'] = function () {
28
            return new ApiAlias();
29
        };
30
    }
31
}
32