| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 2 |
| 1 | <?php |
||
| 28 | 3 | public function process(ContainerBuilder $container) |
|
| 29 | { |
||
| 30 | 3 | $definition = $container->getDefinition('xabbuh_xapi_client.client_manager'); |
|
| 31 | |||
| 32 | 3 | $clients = array(); |
|
| 33 | |||
| 34 | 3 | foreach ($container->getParameter('xabbuh_xapi_client.clients') as $name => $id) { |
|
| 35 | 2 | $clients[$name] = new Reference($id); |
|
| 36 | 3 | } |
|
| 37 | |||
| 38 | 3 | $definition->setArguments(array($clients)); |
|
| 39 | 3 | } |
|
| 40 | } |
||
| 41 |