Closed elernonelma closed 8 years ago
Hi, as followed in the documentation, I tried to set an api_key to the geocoder service. Api_key parameter value is then stored into the locale attribute. Their is my config:
ivory_google_map: geocoder: provider: api_key: "mykey"
Dumping the object :
object(Ivory\GoogleMap\Services\Geocoding\Geocoder)[6433] private 'providers' (Geocoder\Geocoder) => array (size=0) empty private 'provider' (Geocoder\Geocoder) => object(Ivory\GoogleMap\Services\Geocoding\GeocoderProvider)[6432] protected 'url' => string 'http://maps.googleapis.com/maps/api/geocode' (length=43) protected 'https' => boolean false protected 'format' => string 'json' (length=4) protected 'xmlParser' => object(Ivory\GoogleMap\Services\Utils\XmlParser)[6434] protected 'businessAccount' => null protected 'adapter' => object(Geocoder\HttpAdapter\CurlHttpAdapter)[6435] private 'timeout' => null private 'connectTimeout' => null private 'userAgent' => null private 'options' => array (size=0) ... protected 'locale' => string 'mykey' (length=5) protected 'maxResults' => int 5 private 'resultFactory' (Geocoder\Geocoder) => object(Geocoder\Result\DefaultResultFactory)[6437] private 'maxResults' (Geocoder\Geocoder) => int 5
You're right, there is definitively something broken... I will investigate.
Your issue has been fixed in #159 but will only be part of the 3.x version of the bundle.
Hi, as followed in the documentation, I tried to set an api_key to the geocoder service. Api_key parameter value is then stored into the locale attribute. Their is my config:
Dumping the object :