Conditions | 1 |
Paths | 1 |
Total Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
12 | public function load(array $configs, ContainerBuilder $container): void |
||
13 | { |
||
14 | $configuration = new Configuration(); |
||
15 | $config = $this->processConfiguration($configuration, $configs); |
||
16 | // TODO remove "service_class", as it's deprecated |
||
17 | $container->setParameter('beelab_paypal.service_class', $config['service_class']); |
||
18 | unset($config['service_class']); |
||
19 | $container->setParameter('beelab_paypal.config', $config); |
||
20 | |||
21 | $loader = new Loader\XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); |
||
22 | $loader->load('services.xml'); |
||
23 | } |
||
24 | } |
||
25 |