| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 16 | public function register() |
||
| 17 | { |
||
| 18 | $this->app->afterResolving(ChannelManager::class, function (ChannelManager $channels) { |
||
| 19 | $channels->extend('pushwoosh', function ($app) { |
||
| 20 | return $app[PushwooshChannel::class]; |
||
| 21 | }); |
||
| 22 | }); |
||
| 23 | |||
| 24 | $this->app->bindIf(Pushwoosh::class, function ($app) { |
||
| 25 | return new Pushwoosh( |
||
| 26 | new Client(), |
||
| 27 | $app['config']['services.pushwoosh.application'], |
||
| 28 | $app['config']['services.pushwoosh.token'] |
||
| 29 | ); |
||
| 33 |