Conditions | 1 |
Paths | 1 |
Total Lines | 17 |
Code Lines | 13 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
15 | public function load(array $configs, ContainerBuilder $container) |
||
16 | { |
||
17 | $configuration = new Configuration(); |
||
18 | $config = $this->processConfiguration($configuration, $configs); |
||
19 | |||
20 | $loader = new XmlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config')); |
||
21 | $loader->load('unigen.xml'); |
||
22 | |||
23 | $container->setParameter('unigen.test_case', $config['config']['test_case']); |
||
24 | $container->setParameter('unigen.mock_framework', $config['config']['mock_framework']); |
||
25 | $container->setParameter('unigen.path_pattern', $config['config']['path_pattern']); |
||
26 | $container->setParameter('unigen.path_replacement_pattern', $config['config']['path_replacement_pattern']); |
||
27 | $container->setParameter('unigen.namespace_pattern', $config['config']['namespace_pattern']); |
||
28 | $container->setParameter('unigen.namespace_replacement_pattern', |
||
29 | $config['config']['namespace_replacement_pattern']); |
||
30 | $container->setParameter('unigen.render.twig.template', $config['render']['twig']['template']); |
||
31 | $container->setParameter('unigen.render.twig.template_dir', $config['render']['twig']['template_dir']); |
||
32 | } |
||
34 |