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