| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 10 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php namespace Geocoder\Laravel\Providers; |
||
| 22 | 26 | public function boot() |
|
| 23 | { |
||
| 24 | 26 | $configPath = __DIR__ . "/../../config/geocoder.php"; |
|
| 25 | 26 | $this->publishes( |
|
| 26 | 26 | [$configPath => $this->configPath("geocoder.php")], |
|
| 27 | 26 | "config" |
|
| 28 | 24 | ); |
|
| 29 | 24 | $this->mergeConfigFrom($configPath, "geocoder"); |
|
| 30 | 26 | $this->app->singleton("geocoder", function () { |
|
| 31 | 26 | return (new ProviderAndDumperAggregator) |
|
| 32 | ->registerProvidersFromConfig(collect(config("geocoder.providers"))); |
||
| 33 | 26 | }); |
|
| 34 | } |
||
| 35 | 26 | ||
| 61 |