| Conditions | 2 |
| Paths | 2 |
| Total Lines | 17 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 6 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 11 | public function boot() |
||
| 12 | { |
||
| 13 | if ($this->app->runningInConsole()) { |
||
| 14 | $this->publishes([ |
||
| 15 | __DIR__ . '/../config/geonames.php' => config_path('geonames.php'), |
||
| 16 | ], 'config'); |
||
| 17 | |||
| 18 | |||
| 19 | $this->commands([ |
||
| 20 | DownloadFilesCommand::class, |
||
| 21 | DownloadTruncateCommand::class, |
||
| 22 | MakeMigrationCommand::class, |
||
| 23 | ]); |
||
| 24 | } |
||
| 25 | |||
| 26 | $this->app->bind('geodata-importer', function ($app) { |
||
| 27 | return new GeoDataImporter($app); |
||
| 28 | }); |
||
| 39 |