| Total Complexity | 4 |
| Total Lines | 27 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 9 | class EntryServiceProvider extends ServiceProvider |
||
| 10 | { |
||
| 11 | |||
| 12 | /** |
||
| 13 | * @return void |
||
| 14 | */ |
||
| 15 | public function boot(): void |
||
| 16 | { |
||
| 17 | if (!$this->app->runningInConsole()) { |
||
| 18 | return; |
||
| 19 | } |
||
| 20 | |||
| 21 | $this->commands([BulkWrite::class]); |
||
| 22 | if (function_exists('config_path')) { |
||
| 23 | $this->publishes([ |
||
| 24 | dirname(__DIR__) . '/config/config.php' => config_path('entry.php'), |
||
| 25 | ], 'laravel-entry-config'); |
||
| 26 | } |
||
| 27 | } |
||
| 28 | |||
| 29 | /** |
||
| 30 | * Register our singleton's |
||
| 31 | */ |
||
| 32 | public function register(): void |
||
| 36 | } |
||
| 37 | |||
| 39 |