Geocoder\Laravel\Providers\GeocoderService::getProviders PHP Method

getProviders() private method

Instantiate the configured Providers, as well as the Chain Provider.
private getProviders ( Collection $providers ) : array
$providers Illuminate\Support\Collection
return array
    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();
    }