public function process(ContainerBuilder $container)
    {
        if (!$container->has('support_tools.system_info.collector_registry')) {
            return;
        }

        $infoCollectorsTagged = $container->findTaggedServiceIds('support_tools.system_info.collector');

        $infoCollectors = [];
        foreach ($infoCollectorsTagged as $id => $tags) {
            foreach ($tags as $attributes) {
                $infoCollectors[$attributes['identifier']] = new Reference($id);
            }
        }

        $infoCollectorRegistryDef = $container->findDefinition('support_tools.system_info.collector_registry');
        $infoCollectorRegistryDef->setArguments([$infoCollectors]);
    }
public function process(ContainerBuilder $container)
    {
        if (!$container->has('support_tools.system_info.collector_registry')) {
            return;
        }

        $infoCollectorsTagged = $container->findTaggedServiceIds('support_tools.system_info.collector');

        $infoCollectors = [];
        foreach ($infoCollectorsTagged as $id => $tags) {
            foreach ($tags as $attributes) {
                $infoCollectors[$attributes['identifier']] = new Reference($id);
            }
        }

        $infoCollectorRegistryDef = $container->findDefinition('support_tools.system_info.collector_registry');
        $infoCollectorRegistryDef->setArguments([$infoCollectors]);
    }
public function process ( ContainerBuilder $ container ) { if ( ! $ container -> has ( 'support_tools.system_info.collector_registry' ) ) { return ; } $ infoCollectorsTagged = $ container -> findTaggedServiceIds ( 'support_tools.system_info.collector' ) ; $ infoCollectors = [ ] ; foreach ( $ infoCollectorsTagged as $ id => $ tags ) { foreach ( $ tags as $ attributes ) { $ infoCollectors [ $ attributes [ 'identifier' ] ] = new Reference ( $ id ) ; } } $ infoCollectorRegistryDef = $ container -> findDefinition ( 'support_tools.system_info.collector_registry' ) ; $ infoCollectorRegistryDef -> setArguments ( [ $ infoCollectors ] ) ; }
Registers the SystemInfoCollector into the system info collector registry.

@param \Symfony\Component\DependencyInjection\ContainerBuilder $container
Registers the SystemInfoCollector into the system info collector registry .