public function process(ContainerBuilder $container)
    {
        $taggedServices = $container->findTaggedServiceIds(
            'elcodi.rule_context'
        );

        $contextProviders = [];
        foreach ($taggedServices as $id => $attributes) {
            $contextProviders[] = new Reference($id);
        }

        $definition = $container->getDefinition(
            'elcodi.expression_language_context_collector'
        );

        $definition->addArgument($contextProviders);
    }
public function process(ContainerBuilder $container)
    {
        $taggedServices = $container->findTaggedServiceIds(
            'elcodi.rule_context'
        );

        $contextProviders = [];
        foreach ($taggedServices as $id => $attributes) {
            $contextProviders[] = new Reference($id);
        }

        $definition = $container->getDefinition(
            'elcodi.expression_language_context_collector'
        );

        $definition->addArgument($contextProviders);
    }
public function process ( ContainerBuilder $ container ) { $ taggedServices = $ container -> findTaggedServiceIds ( 'elcodi.rule_context' ) ; $ contextProviders = [ ] ; foreach ( $ taggedServices as $ id => $ attributes ) { $ contextProviders [ ] = new Reference ( $ id ) ; } $ definition = $ container -> getDefinition ( 'elcodi.expression_language_context_collector' ) ; $ definition -> addArgument ( $ contextProviders ) ; }
Collect services tagged to add context for RuleManager.

@param ContainerBuilder $container Container
Collect services tagged to add context for RuleManager .