| Conditions | 2 |
| Paths | 2 |
| Total Lines | 13 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 17 | 4 | public function process(ContainerBuilder $container) |
|
| 18 | { |
||
| 19 | 4 | $services = $container->findTaggedServiceIds('innmind.homeostasis.factor'); |
|
| 20 | 4 | $factors = []; |
|
| 21 | |||
| 22 | 4 | foreach ($services as $id => $tags) { |
|
| 23 | 4 | $factors[] = new Reference($id); |
|
| 24 | } |
||
| 25 | |||
| 26 | $container |
||
| 27 | 4 | ->getDefinition('innmind.homeostasis.regulator.default') |
|
| 28 | 4 | ->replaceArgument(0, $factors); |
|
| 29 | 4 | } |
|
| 30 | } |
||
| 31 |