eZ\Publish\Core\Base\Container\Compiler\Search\AggregateFieldValueMapperPass::process PHP Method

process() public method

public process ( ContainerBuilder $container )
$container Symfony\Component\DependencyInjection\ContainerBuilder
    public function process(ContainerBuilder $container)
    {
        if (!$container->hasDefinition('ezpublish.search.common.field_value_mapper.aggregate')) {
            return;
        }
        $aggregateFieldValueMapperDefinition = $container->getDefinition('ezpublish.search.common.field_value_mapper.aggregate');
        $taggedServiceIds = $container->findTaggedServiceIds('ezpublish.search.common.field_value_mapper');
        foreach ($taggedServiceIds as $id => $attributes) {
            $aggregateFieldValueMapperDefinition->addMethodCall('addMapper', [new Reference($id)]);
        }
    }
AggregateFieldValueMapperPass