ServiceProvider   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
eloc 13
c 2
b 0
f 0
dl 0
loc 24
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A register() 0 19 1
1
<?php
2
3
namespace EasyIM\TencentIM\Group;
4
5
use Pimple\Container;
6
use Pimple\ServiceProviderInterface;
7
8
/**
9
 * Class ServiceProvider
10
 *
11
 * @package EasyIM\TencentIM\Group
12
 * @author  yingzhan <[email protected]>
13
 */
14
class ServiceProvider implements ServiceProviderInterface
15
{
16
    /**
17
     * {@inheritdoc}.
18
     */
19
    public function register(Container $app)
20
    {
21
        $app['group'] = function ($app) {
22
            return new Group($app);
23
        };
24
        $app['group.client'] = function ($app) {
25
            return new Client($app);
26
        };
27
        $app['group.member'] = function ($app) {
28
            return new MemberClient($app);
29
        };
30
        $app['group.operate'] = function ($app) {
31
            return new OperateClient($app);
32
        };
33
        $app['group.message'] = function ($app) {
34
            return new MessageClient($app);
35
        };
36
        $app['group.import'] = function ($app) {
37
            return new ImportClient($app);
38
        };
39
    }
40
}
41