Conditions | 1 |
Paths | 1 |
Total Lines | 9 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 8 |
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)->registerProvidersFromConfig(collect(config('geocoder.providers'))); |
|
29 | 21 | }); |
|
30 | 21 | } |
|
31 | |||
42 |