private function getProviders(Collection $providers)
{
$providers = $providers->map(function ($arguments, $provider) {
$arguments = $this->getArguments($arguments, $provider);
$reflection = new ReflectionClass($provider);
if ($provider === 'Geocoder\\Provider\\Chain') {
return $reflection->newInstance($arguments);
}
return $reflection->newInstanceArgs($arguments);
});
return $providers->toArray();
}