| Conditions | 3 |
| Paths | 3 |
| Total Lines | 20 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 25 | public function process(ContainerBuilder $container) |
||
| 26 | { |
||
| 27 | if (!$container->hasDefinition('ezpublish.search.common.field_value_mapper.aggregate')) { |
||
| 28 | return; |
||
| 29 | } |
||
| 30 | |||
| 31 | $aggregateFieldValueMapperDefinition = $container->getDefinition( |
||
| 32 | 'ezpublish.search.common.field_value_mapper.aggregate' |
||
| 33 | ); |
||
| 34 | |||
| 35 | $taggedServiceIds = $container->findTaggedServiceIds( |
||
| 36 | 'ezpublish.search.common.field_value_mapper' |
||
| 37 | ); |
||
| 38 | foreach ($taggedServiceIds as $id => $attributes) { |
||
| 39 | $aggregateFieldValueMapperDefinition->addMethodCall( |
||
| 40 | 'addMapper', |
||
| 41 | [new Reference($id)] |
||
| 42 | ); |
||
| 43 | } |
||
| 44 | } |
||
| 45 | } |
||
| 46 |