Conditions | 3 |
Paths | 4 |
Total Lines | 15 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Tests | 11 |
CRAP Score | 3 |
Changes | 0 |
1 | <?php |
||
27 | 27 | public function load(array $configs, ContainerBuilder $container) |
|
28 | { |
||
29 | 27 | $config = $this->processConfiguration(new Configuration(), $configs); |
|
30 | |||
31 | 27 | $loader = new XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); |
|
32 | 27 | foreach (['services'] as $resource) { |
|
33 | 27 | $loader->load($resource.'.xml'); |
|
34 | 21 | } |
|
35 | |||
36 | 27 | if (!empty($config)) { |
|
37 | $container |
||
38 | 18 | ->getDefinition('ivory_lucene_search') |
|
39 | 18 | ->addMethodCall('setIndexes', [$config]); |
|
40 | 14 | } |
|
41 | 27 | } |
|
42 | } |
||
43 |