Conditions | 2 |
Paths | 2 |
Total Lines | 14 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 10 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
29 | 1 | public function load(array $configs, ContainerBuilder $container) |
|
30 | { |
||
31 | 1 | $loader = new XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); |
|
32 | 1 | $loader->load('services.xml'); |
|
33 | 1 | $processedConfig = $this->processConfiguration(new Configuration(), $configs); |
|
34 | |||
35 | 1 | $underQueryDefinition = $container->register('phuria_under_query', UnderQuery::class); |
|
36 | |||
37 | 1 | if ($connection = $processedConfig['connection']) { |
|
38 | 1 | $underQueryDefinition->addArgument(new Reference($connection)); |
|
39 | 1 | } |
|
40 | |||
41 | 1 | $container->setAlias('under_query', 'phuria_under_query'); |
|
42 | } |
||
43 | } |