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

getArguments() private method

Insert the required Adapter instance (if required) as the first element of the arguments array.
private getArguments ( array $arguments, $provider ) : string
$arguments array
return string
    private function getArguments(array $arguments, $provider)
    {
        if ($provider === 'Geocoder\\Provider\\Chain') {
            return $this->getProviders(collect(config('geocoder.providers.Geocoder\\Provider\\Chain')));
        }
        $adapter = $this->getAdapterClass($provider);
        if ($adapter) {
            array_unshift($arguments, new $adapter());
        }
        return $arguments;
    }