File tree Expand file tree Collapse file tree 1 file changed +5
-8
lines changed Expand file tree Collapse file tree 1 file changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -25,19 +25,16 @@ public function boot()
2525 "config "
2626 );
2727 $ this ->mergeConfigFrom ($ configPath , "geocoder " );
28- $ geocoder = (new ProviderAndDumperAggregator )
29- ->registerProvidersFromConfig (collect (config ("geocoder.providers " )));
30- $ this ->app
31- ->singleton ("geocoder " , function () use ($ geocoder ) {
32- return $ geocoder ;
33- });
34- $ this ->app
35- ->instance (ProviderAndDumperAggregator::class, $ geocoder );
3628 }
3729
3830 public function register ()
3931 {
4032 $ this ->app ->alias ("Geocoder " , Geocoder::class);
33+ $ this ->app ->singleton (ProviderAndDumperAggregator::class, function () {
34+ return (new ProviderAndDumperAggregator )
35+ ->registerProvidersFromConfig (collect (config ("geocoder.providers " )));
36+ });
37+ $ this ->app ->bind ('geocoder ' , ProviderAndDumperAggregator::class);
4138 }
4239
4340 public function provides () : array
You can’t perform that action at this time.
0 commit comments