Completed
Push — master ( 4723bf...a2e0e2 )
by mingyoung
18s queued 13s
created

ServiceProvider::register()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 2
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
1
<?php
2
3
/*
4
 * This file is part of the mingyoung/dingtalk.
5
 *
6
 * (c) 张铭阳 <[email protected]>
7
 *
8
 * This source file is subject to the MIT license that is bundled
9
 * with this source code in the file LICENSE.
10
 */
11
12
namespace EasyDingTalk\Schedule;
13
14
use Pimple\Container;
15
use Pimple\ServiceProviderInterface;
16
17
class ServiceProvider implements ServiceProviderInterface
18
{
19
    /**
20
     * Registers services on the given container.
21
     * This method should only be used to configure services and parameters.
22
     * It should not get services.
23
     *
24
     * @param \Pimple\Container $pimple A container instance
25
     */
26
    public function register(Container $pimple)
27
    {
28
        $pimple['schedule'] = function ($app) {
29
            return new Client($app);
30
        };
31
    }
32
}
33