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