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