Conditions | 1 |
Paths | 1 |
Total Lines | 14 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Tests | 10 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
16 | 1 | protected function loadInternal(array $mergedConfig, ContainerBuilder $container) |
|
17 | { |
||
18 | 1 | $yamlLoader = new YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); |
|
19 | |||
20 | 1 | $yamlLoader->load('services.yml'); |
|
21 | |||
22 | 1 | $connectionDefinition = new Definition(AMQPLazyConnection::class); |
|
23 | 1 | $connectionDefinition->setArgument('$host', $mergedConfig['client']['host']); |
|
24 | 1 | $connectionDefinition->setArgument('$port', $mergedConfig['client']['port']); |
|
25 | 1 | $connectionDefinition->setArgument('$user', $mergedConfig['client']['user']); |
|
26 | 1 | $connectionDefinition->setArgument('$password', $mergedConfig['client']['password']); |
|
27 | 1 | $connectionDefinition->setArgument('$vhost', $mergedConfig['client']['vhost']); |
|
28 | |||
29 | 1 | $container->setDefinition('darkilliant_mqprocess_connection', $connectionDefinition); |
|
30 | 1 | } |
|
32 |