| Conditions | 2 |
| Paths | 2 |
| Total Lines | 20 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 13 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 16 | 210 | public function boot() |
|
| 17 | { |
||
| 18 | 210 | $this->publishes([ |
|
| 19 | 210 | __DIR__.'/../config/initializer.php' => config_path('initializer.php'), |
|
| 20 | 210 | ], 'config'); |
|
| 21 | |||
| 22 | 210 | $this->publishes([ |
|
| 23 | 210 | __DIR__.'/../stubs/install-class.stub' => app_path('Install.php'), |
|
| 24 | 210 | __DIR__.'/../stubs/update-class.stub' => app_path('Update.php'), |
|
| 25 | 210 | ], 'initializers'); |
|
| 26 | |||
| 27 | 210 | $this->app->register(LaravelConsoleTaskServiceProvider::class); |
|
| 28 | |||
| 29 | 210 | if ($this->app->runningInConsole()) { |
|
| 30 | 210 | $this->commands([ |
|
| 31 | 210 | InstallCommand::class, |
|
| 32 | UpdateCommand::class, |
||
| 33 | ]); |
||
| 34 | } |
||
| 35 | 210 | } |
|
| 36 | |||
| 50 |