| Total Complexity | 4 |
| Total Lines | 25 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 7 | class DaftravelServiceProvider extends ServiceProvider |
||
| 8 | { |
||
| 9 | public function register(): void |
||
| 10 | { |
||
| 11 | $this->mergeConfigFrom(__DIR__ . '/../config/daftravel.php', 'daftravel'); |
||
| 12 | |||
| 13 | $this->app->singleton('daftravel', function ($app) { |
||
| 14 | return new Daftravel($app['config']['daftravel']); |
||
| 15 | }); |
||
| 16 | |||
| 17 | $this->app->alias('daftravel', Daftravel::class); |
||
| 18 | } |
||
| 19 | |||
| 20 | public function boot(): void |
||
| 26 | } |
||
| 27 | } |
||
| 28 | |||
| 29 | public function provides(): array |
||
| 32 | } |
||
| 33 | } |
||
| 34 |