| Total Complexity | 4 |
| Total Lines | 29 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 10 | class CheckrServiceProvider extends ServiceProvider |
||
| 11 | { |
||
| 12 | public function boot() |
||
| 13 | { |
||
| 14 | $this->loadRoutesFrom(__DIR__.'/Routes/api.php'); |
||
| 15 | $this->publishes([ |
||
| 16 | __DIR__.'/Config/checkr.php' => config_path('checkr.php'), |
||
|
|
|||
| 17 | ]); |
||
| 18 | } |
||
| 19 | |||
| 20 | public function register() |
||
| 21 | { |
||
| 22 | $this->app['router']->aliasMiddleware('checkr_webhook', Webhook::class); |
||
| 23 | |||
| 24 | $this->app->bind('lyal.checkr', function () { |
||
| 25 | $key = App::environment('production') ? config('checkr.production_key') : config('checkr.testing_key'); |
||
| 26 | |||
| 27 | return new Client($key, config('checkr.options', [])); |
||
| 28 | }); |
||
| 29 | } |
||
| 30 | |||
| 31 | /** |
||
| 32 | * Get the services provided by the provider. |
||
| 33 | * |
||
| 34 | * @return array |
||
| 35 | */ |
||
| 36 | public function provides() |
||
| 39 | } |
||
| 40 | } |
||
| 41 |