| Conditions | 2 |
| Paths | 2 |
| Total Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 17 | public function load(array $config, ContainerBuilder $container) |
||
| 18 | { |
||
| 19 | $config = $this->processConfiguration($this->getConfiguration([], $container), $config); |
||
|
|
|||
| 20 | $loader = new XmlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config')); |
||
| 21 | |||
| 22 | foreach ($config['view_classes'] as $view => $class) { |
||
| 23 | $container->setParameter(sprintf('sylius.shop_api.view.%s.class', $view), $class); |
||
| 24 | } |
||
| 25 | |||
| 26 | $container->setParameter('sylius.shop_api.included_attributes', $config['included_attributes']); |
||
| 27 | |||
| 28 | $loader->load('services.xml'); |
||
| 29 | } |
||
| 30 | } |
||
| 31 |