src/Knp/DictionaryBundle/DependencyInjection/Compiler/DictionaryFactoryBuildingPass.php
public function process(ContainerBuilder $container): void
    {
        foreach ($container->findTaggedServiceIds(self::TAG_FACTORY) as $id => $tags) {
            $container
                ->findDefinition(Aggregate::class)
                ->addMethodCall('addFactory', [new Reference($id)])
            ;
        }
    }
public function process(ContainerBuilder $container): void
    {
        foreach ($container->findTaggedServiceIds(self::TAG_FACTORY) as $id => $tags) {
            $container
                ->findDefinition(Aggregate::class)
                ->addMethodCall('addFactory', [new Reference($id)])
            ;
        }
    }
{@inheritdoc}