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