| Conditions | 3 |
| Paths | 4 |
| Total Lines | 21 |
| Code Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 20 | public function load(array $configs, ContainerBuilder $container) |
||
| 21 | { |
||
| 22 | $configuration = new Configuration(); |
||
| 23 | $config = $this->processConfiguration($configuration, $configs); |
||
| 24 | |||
| 25 | if (isset($config['wsdl'])) { |
||
| 26 | $wsdl = $config['wsdl']; |
||
| 27 | } else { |
||
| 28 | $wsdl = 'http://webservices.cibg.nl/Ribiz/OpenbaarV4.asmx?WSDL'; |
||
| 29 | } |
||
| 30 | |||
| 31 | if (isset($config['cache'])) { |
||
| 32 | $container->setParameter('wb_big_register.cache.service_id', $config['cache']['service_id']); |
||
| 33 | $container->setParameter('wb_big_register.cache.ttl', $config['cache']['ttl']); |
||
| 34 | } |
||
| 35 | |||
| 36 | $container->setParameter('wb_big_register.wsdl', $wsdl); |
||
| 37 | |||
| 38 | $loader = new Loader\XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); |
||
| 39 | $loader->load('services.xml'); |
||
| 40 | } |
||
| 41 | } |
||
| 42 |