src/CSDT/CollectionsBundle/CollectionHelper/Compiler/HelperCompiler.php
public function process(ContainerBuilder $container)
    {
        $helper = 'collection.helper.helper';
        $manager = 'collection.helper.manager';
        $method = 'setCasterManager';

        $taggedhelper = $container->findTaggedServiceIds($helper);
        foreach ($taggedhelper as $helperId => $tags) {
            $helperDefinition = $container->findDefinition($helperId);

            $taggedServices = $container->findTaggedServiceIds($manager);
            
            foreach ($taggedServices as $id => $tags) {
                $helperDefinition->addMethodCall(
                    $method,
                    array(new Reference($id))
                );
            }
        }
    }
public function process(ContainerBuilder $container)
    {
        $helper = 'collection.helper.helper';
        $manager = 'collection.helper.manager';
        $method = 'setCasterManager';

        $taggedhelper = $container->findTaggedServiceIds($helper);
        foreach ($taggedhelper as $helperId => $tags) {
            $helperDefinition = $container->findDefinition($helperId);

            $taggedServices = $container->findTaggedServiceIds($manager);
            
            foreach ($taggedServices as $id => $tags) {
                $helperDefinition->addMethodCall(
                    $method,
                    array(new Reference($id))
                );
            }
        }
    }
Process

This method process the container
to inject the manager into the
collection helper.

@param ContainerBuilder $container The application container builder

@return void