src/DependencyInjection/ConfigPass.php
private function setConfigTypesArgument(ContainerBuilder $container): void
    {
        if (!$container->has('contao_bootstrap.config.type_manager')) {
            return;
        }

        $definition       = $container->findDefinition('contao_bootstrap.config.type_manager');
        $taggedServiceIds = $container->findTaggedServiceIds('contao_bootstrap.config.type');
        $services         = (array) $definition->getArgument(1);

        foreach (array_keys($taggedServiceIds) as $serviceId) {
            $services[] = new Reference($serviceId);
        }

        $definition->replaceArgument(1, $services);
    }
private function setConfigTypesArgument(ContainerBuilder $container): void
    {
        if (!$container->has('contao_bootstrap.config.type_manager')) {
            return;
        }

        $definition       = $container->findDefinition('contao_bootstrap.config.type_manager');
        $taggedServiceIds = $container->findTaggedServiceIds('contao_bootstrap.config.type');
        $services         = (array) $definition->getArgument(1);

        foreach (array_keys($taggedServiceIds) as $serviceId) {
            $services[] = new Reference($serviceId);
        }

        $definition->replaceArgument(1, $services);
    }
Set the config types arguments.

@param ContainerBuilder $container Container builder.

@return void