| Conditions | 2 |
| Paths | 2 |
| Total Lines | 24 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 6 |
| Changes | 0 | ||
| 1 | <?php |
||
| 17 | public function boot() |
||
| 18 | { |
||
| 19 | $this->publishes([ |
||
| 20 | __DIR__.'/../config/exponent-push-notifications.php' => config_path('exponent-push-notifications.php'), |
||
| 21 | ], 'config'); |
||
| 22 | |||
| 23 | $this->mergeConfigFrom(__DIR__.'/../config/exponent-push-notifications.php', 'exponent-push-notifications'); |
||
| 24 | |||
| 25 | if (! class_exists('CreateExponentPushNotificationInterestsTable')) { |
||
| 26 | $timestamp = date('Y_m_d_His', time()); |
||
| 27 | $this->publishes([ |
||
| 28 | __DIR__.'/../migrations/create_exponent_push_notification_interests_table.php.stub' => database_path("/migrations/{$timestamp}_create_exponent_push_notification_interests_table.php"), |
||
| 29 | ], 'migrations'); |
||
| 30 | } |
||
| 31 | |||
| 32 | $this->app->when(ExpoChannel::class) |
||
| 33 | ->needs(Expo::class) |
||
| 34 | ->give(function () { |
||
| 35 | return new Expo(new ExpoRegistrar($this->getInterestsDriver())); |
||
| 36 | }); |
||
| 37 | |||
| 38 | //Load routes |
||
| 39 | $this->loadRoutesFrom(__DIR__.'/Http/routes.php'); |
||
| 40 | } |
||
| 41 | |||
| 67 | } |