Skip to content

Commit 3e62b60

Browse files
author
Ilya Shtricul
committed
Deleted chain provider singleton
1 parent 2ac108c commit 3e62b60

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

src/GeocoderServiceProvider.php

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -48,27 +48,6 @@ public function register()
4848
return new $adapter;
4949
});
5050

51-
$this->app->singleton('geocoder.chain', function($app) {
52-
$providers = [];
53-
54-
foreach($app['config']->get('geocoder.providers') as $provider => $arguments) {
55-
if (0 !== count($arguments)) {
56-
$providers[] = call_user_func_array(
57-
function ($arg1 = null, $arg2 = null, $arg3 = null, $arg4 = null) use ($app, $provider) {
58-
return new $provider($app['geocoder.adapter'], $arg1, $arg2, $arg3, $arg4);
59-
},
60-
$arguments
61-
);
62-
63-
continue;
64-
}
65-
66-
$providers[] = new $provider($app['geocoder.adapter']);
67-
}
68-
69-
return new ChainProvider($providers);
70-
});
71-
7251
$this->app['geocoder'] = $this->app->share(function($app) {
7352
$geocoder = new Geocoder;
7453
$geocoder->registerProviders(

0 commit comments

Comments
 (0)