@@ -31,7 +31,7 @@ Installation
3131------------
3232
3333To install this bundle you need to know how to [ install the geocoder and providers] ( https://github.com/geocoder-php/Geocoder#installation )
34- and then you may just install the bundle like normal:
34+ and then you may just install the bundle like normal:
3535
3636``` bash
3737composer require willdurand/geocoder-bundle:^5.0
@@ -53,9 +53,9 @@ public function registerBundles()
5353Usage
5454-----
5555
56- The bundle helps you register your providers and to enable profiling support. To
56+ The bundle helps you register your providers and to enable profiling support. To
5757configure a provider you must use a ` ProviderFactory ` . See the following example
58- using Google Maps.
58+ using Google Maps.
5959
6060``` yaml
6161bazinga_geocoder :
@@ -64,10 +64,10 @@ bazinga_geocoder:
6464 factory : Bazinga\GeocoderBundle\ProviderFactory\GoogleMapsFactory
6565` ` `
6666
67- This will create a service named ` bazinga_geocoder.provider.acme` which is a
67+ This will create a service named ` bazinga_geocoder.provider.acme` which is a
6868` GoogleMapsProvider` .
6969
70- You can also configure **all ``ProviderFactories``** to adjust the behavior of the
70+ You can also configure **all ``ProviderFactories``** to adjust the behavior of the
7171provider.
7272
7373` ` ` yaml
@@ -77,22 +77,22 @@ bazinga_geocoder:
7777 factory: Bazinga\G eocoderBundle\P roviderFactory\G oogleMapsFactory
7878 cache: 'any.psr16.service'
7979 cache_lifetime: 3600
80- aliases:
80+ aliases:
8181 - my_geocoder
8282` ` `
8383
84- This will create a service named `my_geocoder` that caches the responses for one
84+ This will create a service named `my_geocoder` that caches the responses for one
8585hour.
8686
87- **Most ``ProviderFactories``** do also take an array with options. This is usually
87+ **Most ``ProviderFactories``** do also take an array with options. This is usually
8888parameters to the constructor of the provider. In the example of Google Maps :
8989
9090` ` ` yaml
9191bazinga_geocoder:
9292 providers:
9393 acme:
9494 factory: Bazinga\G eocoderBundle\P roviderFactory\G oogleMapsFactory
95- options:
95+ options:
9696 httplug_client: '@httplug.client' # When using HTTPlugBundle
9797 region: 'Sweden'
9898 api_key: 'xxyy'
@@ -177,7 +177,7 @@ If set, the parameter will replace all instances of "127.0.0.1" in your queries
177177
178178Sometimes you have to cache the results from a provider. For this case the bundle provides
179179simple configuration. You only need to provide a service name for you SimpleCache (PSR-16)
180- service and you are good to go.
180+ service and you are good to go.
181181
182182` ` ` yaml
183183bazinga_geocoder:
@@ -234,10 +234,10 @@ To register a new dumper, you must tag it with `bazinga_geocoder.dumper`.
234234# ## Custom HTTP Client
235235
236236The HTTP geocoder providers integrates with [HTTPlug](http://httplug.io/). It will give you all
237- the power of the HTTP client. You have to select which one you want to use and how
238- you want to configure it.
237+ the power of the HTTP client. You have to select which one you want to use and how
238+ you want to configure it.
239239
240- Read their [usage page](http://docs.php-http.org/en/latest/httplug/users.html), you
240+ Read their [usage page](http://docs.php-http.org/en/latest/httplug/users.html), you
241241may also be interested in checking out the [HTTPlugBundle](https://github.com/php-http/HttplugBundle).
242242
243243An example, if you want to use Guzzle6.
@@ -251,16 +251,16 @@ Reference Configuration
251251
252252You'll find the reference configuration below :
253253
254- ` ` ` yaml
254+ ` ` ` yaml
255255# app/config/config.yml
256256bazinga_geocoder:
257- profiling:
257+ profiling:
258258 enabled: ~ # Default is same as kernel.debug
259259 fake_ip:
260260 enabled: true
261261 ip: null
262262 providers:
263- # ...
263+ # ...
264264 acme:
265265 factory: ~ # Required
266266 cache: 'app.cache'
@@ -269,9 +269,9 @@ bazinga_geocoder:
269269 limit: 5
270270 locale: 'sv'
271271 logger: 'logger'
272- plugins:
272+ plugins:
273273 - my_custom_plugin
274- aliases:
274+ aliases:
275275 - acme
276276 - acme_geocoder
277277 options:
@@ -290,15 +290,15 @@ Backwards compatibility
290290-----------------------
291291
292292The BazingaGeocoderBundle is just a Symfony integration for Geocoder-PHP and it
293- does not have any classes which falls under the BC promise. The backwards compatibility
293+ does not have any classes which falls under the BC promise. The backwards compatibility
294294of the bundle is only the configuration and its values (and of course the behavior
295295of those values).
296296
297297The public service names (excluding the ones related to profiling/DataCollector)
298- falls under the backwards compatibility promise.
298+ falls under the backwards compatibility promise.
299299
300- Bottom line is, that you can trust that your configuration will not break and that
301- the services you use will still be working.
300+ Bottom line is, that you can trust that your configuration will not break and that
301+ the services you use will still be working.
302302
303303Testing
304304-------
@@ -320,7 +320,7 @@ Traivs but if you want to run it locally you must do the following.
320320composer require phpunit/phpunit:^5.7 --no-update
321321composer update --prefer-source
322322wget https://phar.phpunit.de/phpunit-5.7.phar
323- php phpunit-5.7.phar --testsuit doctrine
323+ php phpunit-5.7.phar --testsuit doctrine
324324` ` `
325325
326326**Important:** this command must be run with `--prefer-source`, otherwise the
0 commit comments