| Conditions | 2 |
| Paths | 2 |
| Total Lines | 21 |
| Code Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 23 | public function load(array $config, ContainerBuilder $container): void |
||
| 24 | { |
||
| 25 | $config = $this->processConfiguration($this->getConfiguration([], $container), $config); |
||
|
|
|||
| 26 | $loader = new YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); |
||
| 27 | |||
| 28 | $this->registerResources('odiseo_sylius_report', $config['driver'], $config['resources'], $container); |
||
| 29 | |||
| 30 | $configFiles = [ |
||
| 31 | 'services.yml', |
||
| 32 | ]; |
||
| 33 | |||
| 34 | foreach ($configFiles as $configFile) { |
||
| 35 | $loader->load($configFile); |
||
| 36 | } |
||
| 37 | |||
| 38 | $container |
||
| 39 | ->getDefinition('odiseo_sylius_report.form.type.report') |
||
| 40 | ->addArgument(new Reference('odiseo_sylius_report.registry.renderer')) |
||
| 41 | ->addArgument(new Reference('odiseo_sylius_report.registry.data_fetcher')) |
||
| 42 | ->addArgument($config['renderer_configuration_template']) |
||
| 43 | ->addArgument($config['data_fetcher_configuration_template']) |
||
| 44 | ; |
||
| 47 |