| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 21 | public function load(array $configs, ContainerBuilder $container) |
||
| 22 | { |
||
| 23 | $configuration = new Configuration(); |
||
| 24 | $config = $this->processConfiguration($configuration, $configs); |
||
| 25 | $container->setParameter('terox_subscription.config', $config); |
||
| 26 | $container->setParameter('terox_subscription.config.subscription.class', $config['subscription_class']); |
||
| 27 | $container->setParameter('terox_subscription.config.subscription.repository', $config['subscription_repository']); |
||
| 28 | $container->setParameter('terox_subscription.config.product.repository', $config['product_repository']); |
||
| 29 | |||
| 30 | $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); |
||
| 31 | $loader->load('services.yml'); |
||
| 32 | $loader->load('strategy.product.yml'); |
||
| 33 | $loader->load('strategy.subscription.yml'); |
||
| 34 | } |
||
| 36 |