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