@@ -22,14 +22,16 @@ to your `composer.json` file:
2222
2323Register the bundle in ` app/AppKernel.php ` :
2424
25- // app/AppKernel.php
26- public function registerBundles()
27- {
28- return array(
29- // ...
30- new Bazinga\Bundle\GeocoderBundle\BazingaGeocoderBundle(),
31- );
32- }
25+ ``` php
26+ // app/AppKernel.php
27+ public function registerBundles()
28+ {
29+ return array(
30+ // ...
31+ new Bazinga\Bundle\GeocoderBundle\BazingaGeocoderBundle(),
32+ );
33+ }
34+ ```
3335
3436Enable the bundle's configuration in ` app/config/config.yml ` :
3537
@@ -73,7 +75,7 @@ information in your development environment, for instance:
7375 // Retrieve information from the current user (by its IP address)
7476 $result = $this->container
7577 ->get('bazinga_geocoder.geocoder')
76- ->using('yahoo ')
78+ ->using('google_maps ')
7779 ->geocode($request->server->get('REMOTE_ADDR'));
7880
7981 // Find the 5 nearest objects (15km) from the current user.
@@ -173,7 +175,7 @@ __Configuration example:__
173175
174176services:
175177 acme_cache_adapter:
176- class: "Doctrine\C ommon\C ache\A pcCache"
178+ class: "Doctrine\\ Common\\ Cache\ \ ApcCache"
177179
178180bazinga_geocoder:
179181 providers:
@@ -183,8 +185,8 @@ bazinga_geocoder:
183185 google_maps: ~
184186` ` `
185187
186- > Tip: If you want to configure the cache adapter,
187- > we recommend the [liip/doctrine-cache-bundle](https://github.com/liip/LiipDoctrineCacheBundle.git ).
188+ > ** Tip:** If you want to configure the cache adapter,
189+ > we recommend the [liip/doctrine-cache-bundle](https://github.com/liip/LiipDoctrineCacheBundle).
188190
189191
190192# ## Symfony2 Profiler Integration
@@ -226,9 +228,6 @@ bazinga_geocoder:
226228 lifetime: 86400
227229 ip_info_db:
228230 api_key: ~ # Required
229- yahoo:
230- api_key: ~ # Required
231- locale: ~
232231 cloudmade:
233232 api_key: ~ # Required
234233 google_maps:
@@ -240,7 +239,7 @@ bazinga_geocoder:
240239 api_key: ~
241240 region: ~
242241 use_ssl: false
243- openstreetmaps :
242+ openstreetmap :
244243 locale: ~
245244 host_ip: []
246245 geoip: []
0 commit comments