| Total Complexity | 4 |
| Total Lines | 22 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 13 | final class MonsieurBizSyliusSalesReportsExtension extends Extension |
||
| 14 | { |
||
| 15 | |||
| 16 | CONST EXTENSION_CONFIG_NAME = 'monsieurbiz_sylius_sales_reports'; |
||
| 17 | |||
| 18 | public function load(array $configs, ContainerBuilder $container) |
||
| 19 | { |
||
| 20 | $configuration = $this->getConfiguration([], $container); |
||
| 21 | if ($configuration instanceof ConfigurationInterface) { |
||
| 22 | $config = $this->processConfiguration($configuration, $configs); |
||
| 23 | foreach ($config as $name => $value) { |
||
| 24 | $container->setParameter(self::EXTENSION_CONFIG_NAME . '.' . $name, $value); |
||
| 25 | } |
||
| 26 | } |
||
| 27 | |||
| 28 | $loader = new YamlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config')); |
||
| 29 | $loader->load('services.yaml'); |
||
| 30 | } |
||
| 31 | |||
| 32 | public function getAlias() |
||
| 35 | } |
||
| 36 | } |
||
| 37 |