You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Resources/doc/index.md
+17-2Lines changed: 17 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -218,6 +218,22 @@ bazinga_geocoder:
218
218
> **Tip:** If you want to configure the cache adapter,
219
219
> we recommend the [doctrine/doctrine-cache-bundle](https://github.com/doctrine/DoctrineCacheBundle).
220
220
221
+
### Custom HTTP Adapter
222
+
223
+
Geocoder Bundle integrates with [egeloen/http-adapter] (https://github.com/egeloen/ivory-http-adapter). By default the bundle use a simple cURL Adapter.
224
+
You can use any [PSR-7] (http://www.php-fig.org/psr/psr-7/) compliant adapter.
225
+
226
+
An example, if you want to use Guzzle.
227
+
228
+
```yaml
229
+
# app/config/config*.yml
230
+
services:
231
+
guzzle_http_adapter:
232
+
class: "Ivory\HttpAdapter\Guzzle6HttpAdapter"
233
+
234
+
bazinga_geocoder:
235
+
adapter: guzzle_http_adapter
236
+
```
221
237
222
238
### Symfony2 Profiler Integration
223
239
@@ -244,8 +260,7 @@ bazinga_geocoder:
244
260
enabled: true
245
261
ip: null
246
262
priority: 0
247
-
adapter:
248
-
class: null
263
+
adapter: ~ # An adapter service id
249
264
default_provider: ~ # Name of provider, e.g. chain
0 commit comments