| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 4 |
| CRAP Score | 1.1715 |
| Changes | 0 | ||
| 1 | <?php |
||
| 20 | public function register() |
||
| 21 | { |
||
| 22 | 1 | $this->app->singleton(XgPusher::class, function ($app) { |
|
| 23 | $config = $app['config']['services.xgpush']; |
||
| 24 | |||
| 25 | return (new XgPusher($config['key'], $config['secret'])) |
||
| 26 | ->setEnvironment($config['environment']) |
||
| 27 | ->setCustomKey($config['custom']) |
||
| 28 | ->setAccountPrefix($config['account_prefix']); |
||
| 29 | 1 | }); |
|
| 30 | |||
| 31 | 1 | $this->app->alias(XgPusher::class, 'xgpusher'); |
|
| 32 | 1 | } |
|
| 33 | |||
| 47 |