Conditions | 2 |
Paths | 2 |
Total Lines | 12 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 6 |
Changes | 4 | ||
Bugs | 2 | Features | 0 |
1 | <?php |
||
20 | public function load(array $configs, ContainerBuilder $container) |
||
21 | { |
||
22 | $configuration = new Configuration(); |
||
23 | $config = $this->processConfiguration($configuration, $configs); |
||
24 | |||
25 | $frontPath = (array_key_exists('front_path', $config) ? $config['front_path'] : ''); |
||
26 | $container->setParameter('front_render_bundle.front_path', trim($frontPath)); |
||
27 | |||
28 | $loader = new XmlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config/services')); |
||
29 | $loader->load('render.xml'); |
||
30 | $loader->load('manager.xml'); |
||
31 | } |
||
32 | } |
||
33 |