diff --git a/src/Geocoder/Geocoder.php b/src/Geocoder/Geocoder.php index b921828..5bb5532 100644 --- a/src/Geocoder/Geocoder.php +++ b/src/Geocoder/Geocoder.php @@ -355,7 +355,7 @@ protected function _buildGeocoder() { /** @var \Cake\Http\Client $adapterClass */ $adapterClass = $this->getConfig('adapter'); - $this->adapter = new $adapterClass(new Client(), new ResponseFactory()); + $this->adapter = new $adapterClass(); $provider = new GoogleMaps($this->adapter, $this->getConfig('region'), $this->getConfig('apiKey')); $geocoder = new StatefulGeocoder($provider, $this->getConfig('locale') ?: 'en');