Skip to content

Commit 1f13e2d

Browse files
committed
Merge pull request #74 from me1ifaro/gmaps-api-key
Added api_key parameter for google_maps fixes #70
2 parents 7e5dc7b + 702a299 commit 1f13e2d

File tree

4 files changed

+4
-0
lines changed

4 files changed

+4
-0
lines changed

DependencyInjection/BazingaGeocoderExtension.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ public function load(array $configs, ContainerBuilder $container)
9292
$googleMapsParams['locale'],
9393
$googleMapsParams['region'],
9494
$googleMapsParams['use_ssl'],
95+
$googleMapsParams['api_key'],
9596
));
9697
}
9798

DependencyInjection/Configuration.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ public function getConfigTreeBuilder()
102102
->scalarNode('locale')->defaultNull()->end()
103103
->scalarNode('region')->defaultNull()->end()
104104
->booleanNode('use_ssl')->defaultFalse()->end()
105+
->scalarNode('api_key')->defaultNull()->end()
105106
->end()
106107
->end()
107108
->arrayNode('google_maps_business')

Resources/doc/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,7 @@ bazinga_geocoder:
253253
locale: ~
254254
region: ~
255255
use_ssl: false
256+
api_key ~
256257
google_maps_business:
257258
client_id: ~ # Required
258259
api_key: ~

Tests/DependencyInjection/Fixtures/config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ bazinga_geocoder:
2020
google_maps:
2121
locale: en_US
2222
region: en_US
23+
api_key: 123
2324
google_maps_business:
2425
client_id: 123
2526
api_key: 123

0 commit comments

Comments
 (0)