| Conditions | 1 |
| Paths | 1 |
| Total Lines | 18 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 16 | public function register() |
||
| 17 | { |
||
| 18 | $this->app->bind(Token::class, function ($app) { |
||
| 19 | return Token::create([ |
||
| 20 | 'key_id' => $app['config']['broadcasting.connections.apn.key_id'], |
||
| 21 | 'team_id' => $app['config']['broadcasting.connections.apn.team_id'], |
||
| 22 | 'app_bundle_id' => $app['config']['broadcasting.connections.apn.app_bundle_id'], |
||
| 23 | 'private_key_path' => $app['config']['broadcasting.connections.apn.private_key_path'], |
||
| 24 | 'private_key_secret' => $app['config']['broadcasting.connections.apn.private_key_secret'], |
||
| 25 | ]); |
||
| 26 | }); |
||
| 27 | |||
| 28 | $this->app->bind(Client::class, function ($app) { |
||
| 29 | $production = $app['config']['broadcasting.connections.apn.environment'] === ApnChannel::PRODUCTION; |
||
| 30 | |||
| 31 | return new Client($app->make(Token::class), $production); |
||
| 32 | }); |
||
| 33 | } |
||
| 34 | } |
||
| 35 |