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