Conditions | 3 |
Paths | 3 |
Total Lines | 18 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
25 | public function load(array $configs, ContainerBuilder $container) |
||
26 | { |
||
27 | $processor = new Processor(); |
||
28 | $configuration = new Configuration($this->getAlias()); |
||
29 | $config = $processor->processConfiguration($configuration, $configs); |
||
30 | |||
31 | $loader = new Loader\XmlFileLoader($container, new FileLocator(__DIR__ . '/../../Resources/config')); |
||
32 | |||
33 | if (!isset($config['db_driver'])) { |
||
34 | throw new \InvalidArgumentException('You must provide the black_user.db_driver configuration'); |
||
35 | } |
||
36 | |||
37 | $container->setParameter($this->getAlias() . '.backend_type_' . $config['db_driver'], true); |
||
38 | |||
39 | foreach ([] as $service) { |
||
40 | $loader->load(sprintf('%s.xml', $service)); |
||
41 | } |
||
42 | } |
||
43 | |||
52 |