| Conditions | 1 |
| Paths | 1 |
| Total Lines | 15 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 26 | public function register(Container $pimple) |
||
| 27 | { |
||
| 28 | $pimple[IMCloud::class] = $pimple['im'] = function ($app) { |
||
| 29 | return new IMCloud($app); |
||
| 30 | }; |
||
| 31 | |||
| 32 | $pimple[TLSSig::class] = $pimple['TLSSig'] = function ($app) { |
||
| 33 | $api = new TLSSig(); |
||
| 34 | $api->setAppid($app['config']->get('app_id')); |
||
| 35 | $api->setPrivateKey($app['config']->get('private_key')); |
||
| 36 | $api->setPublicKey($app['config']->get('public_key')); |
||
| 37 | |||
| 38 | return $api; |
||
| 39 | }; |
||
| 40 | } |
||
| 41 | } |
||
| 42 |