DependencyInjection/Compiler/ExtractionDescriptorPass.php
public function process(ContainerBuilder $container)
    {
        if (!$container->hasDefinition('ongr_connections.sync.extraction_collection')) {
            return;
        }
        $collectionDefinition = $container->getDefinition('ongr_connections.sync.extraction_collection');
        foreach ($container->findTaggedServiceIds('ongr_connections.extraction_descriptor') as $id => $tags) {
            $definition = $container->getDefinition($id);
            $definition->addMethodCall('setName', [$id]);
            $this->addParameters($container, $definition);
            $collectionDefinition->addMethodCall('addDescriptor', [new Reference($id)]);
        }
    }
public function process(ContainerBuilder $container)
    {
        if (!$container->hasDefinition('ongr_connections.sync.extraction_collection')) {
            return;
        }
        $collectionDefinition = $container->getDefinition('ongr_connections.sync.extraction_collection');
        foreach ($container->findTaggedServiceIds('ongr_connections.extraction_descriptor') as $id => $tags) {
            $definition = $container->getDefinition($id);
            $definition->addMethodCall('setName', [$id]);
            $this->addParameters($container, $definition);
            $collectionDefinition->addMethodCall('addDescriptor', [new Reference($id)]);
        }
    }
{@inheritdoc}