Skip to content

Commit ba1cc40

Browse files
committed
Merge pull request #28 from samuelwilliams/usingSsl
Add use SSL as configuration option for Google provider.
2 parents 514840e + a5a5437 commit ba1cc40

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

DependencyInjection/BazingaGeocoderExtension.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,11 @@ public function load(array $configs, ContainerBuilder $container)
8888
if (isset($config['providers']['google_maps'])) {
8989
$googleMapsParams = $config['providers']['google_maps'];
9090

91-
$this->addProvider('google_maps', array($googleMapsParams['locale'], $googleMapsParams['region']));
91+
$this->addProvider('google_maps', array(
92+
$googleMapsParams['locale'],
93+
$googleMapsParams['region'],
94+
$googleMapsParams['use_ssl'],
95+
));
9296
}
9397

9498
if (isset($config['providers']['openstreetmaps'])) {

DependencyInjection/Configuration.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ public function getConfigTreeBuilder()
9595
->children()
9696
->scalarNode('locale')->defaultNull()->end()
9797
->scalarNode('region')->defaultNull()->end()
98+
->booleanNode('use_ssl')->defaultFalse()->end()
9899
->end()
99100
->end()
100101
->arrayNode('openstreetmaps')

0 commit comments

Comments
 (0)