Skip to content

Commit 7e5dc7b

Browse files
committed
Merge pull request #81 from stephpy/chain_provider
External services on chain providers & Perform no deep merging on providers.
2 parents dc55201 + 8e06471 commit 7e5dc7b

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

DependencyInjection/BazingaGeocoderExtension.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,8 @@ public function load(array $configs, ContainerBuilder $container)
236236
$chainProvider->addMethodCall('addProvider', array(
237237
$this->container->getDefinition('bazinga_geocoder.provider.'.$name)
238238
));
239+
} else {
240+
$chainProvider->addMethodCall('addProvider', array(new Reference($name)));
239241
}
240242
}
241243
}

DependencyInjection/Configuration.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,7 @@ public function getConfigTreeBuilder()
172172
->fixXmlConfig('provider')
173173
->children()
174174
->arrayNode('providers')
175+
->performNoDeepMerging()
175176
->prototype('scalar')->end()
176177
->end()
177178
->end()

0 commit comments

Comments
 (0)