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

        $outputFormattersTagged = $container->findTaggedServiceIds('support_tools.system_info.output_format');

        $outputFormatters = [];
        foreach ($outputFormattersTagged as $id => $tags) {
            foreach ($tags as $attributes) {
                $outputFormatters[$attributes['format']] = new Reference($id);
            }
        }

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

        $outputFormattersTagged = $container->findTaggedServiceIds('support_tools.system_info.output_format');

        $outputFormatters = [];
        foreach ($outputFormattersTagged as $id => $tags) {
            foreach ($tags as $attributes) {
                $outputFormatters[$attributes['format']] = new Reference($id);
            }
        }

        $outputFormatRegistryDef = $container->findDefinition('support_tools.system_info.output_registry');
        $outputFormatRegistryDef->setArguments([$outputFormatters]);
    }
public function process ( ContainerBuilder $ container ) { if ( ! $ container -> has ( 'support_tools.system_info.output_registry' ) ) { return ; } $ outputFormattersTagged = $ container -> findTaggedServiceIds ( 'support_tools.system_info.output_format' ) ; $ outputFormatters = [ ] ; foreach ( $ outputFormattersTagged as $ id => $ tags ) { foreach ( $ tags as $ attributes ) { $ outputFormatters [ $ attributes [ 'format' ] ] = new Reference ( $ id ) ; } } $ outputFormatRegistryDef = $ container -> findDefinition ( 'support_tools.system_info.output_registry' ) ; $ outputFormatRegistryDef -> setArguments ( [ $ outputFormatters ] ) ; }
Registers the OutputFormat tagged services into the output format registry.

@param \Symfony\Component\DependencyInjection\ContainerBuilder $container
Registers the OutputFormat tagged services into the output format registry .