| Total Complexity | 3 |
| Total Lines | 29 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | final class SetonoSyliusStockMovementExtension extends AbstractResourceExtension |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * {@inheritdoc} |
||
| 17 | * |
||
| 18 | * @throws Exception |
||
| 19 | */ |
||
| 20 | public function load(array $config, ContainerBuilder $container): void |
||
| 21 | { |
||
| 22 | $config = $this->processConfiguration($this->getConfiguration([], $container), $config); |
||
|
|
|||
| 23 | $loader = new XmlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config')); |
||
| 24 | |||
| 25 | $container->setParameter('setono_sylius_stock_movement.filesystem.report', $config['report_filesystem']); |
||
| 26 | |||
| 27 | $this->registerTemplateParameter($container, $config['templates']); |
||
| 28 | |||
| 29 | $loader->load('services.xml'); |
||
| 30 | |||
| 31 | $this->registerResources('setono_sylius_stock_movement', $config['driver'], $config['resources'], $container); |
||
| 32 | } |
||
| 33 | |||
| 34 | private function registerTemplateParameter(ContainerBuilder $container, array $templates): void |
||
| 42 | } |
||
| 43 | } |
||
| 44 |