DependencyInjection/Compiler/LdifUrlLoaderPass.php
public function process(ContainerBuilder $container)
    {
        $urlLoaders = $container->findTaggedServiceIds(self::LDIF_URL_LOADER_TAG);
        if (empty($urlLoaders)) {
            return;
        }
        $parser = $container->findDefinition(self::LDIF_PARSER);

        foreach ($urlLoaders as $id => $loader) {
            if (!isset($loader[0]['type'])) {
                throw new \InvalidArgumentException(sprintf('Service "%s" must define the "type" attribute on "%s" tags.', $id, self::LDIF_URL_LOADER_TAG));
            }
            $parser->addMethodCall('setUrlLoader', [$loader[0]['type'], new Reference($id)]);
        }
    }
public function process(ContainerBuilder $container)
    {
        $urlLoaders = $container->findTaggedServiceIds(self::LDIF_URL_LOADER_TAG);
        if (empty($urlLoaders)) {
            return;
        }
        $parser = $container->findDefinition(self::LDIF_PARSER);

        foreach ($urlLoaders as $id => $loader) {
            if (!isset($loader[0]['type'])) {
                throw new \InvalidArgumentException(sprintf('Service "%s" must define the "type" attribute on "%s" tags.', $id, self::LDIF_URL_LOADER_TAG));
            }
            $parser->addMethodCall('setUrlLoader', [$loader[0]['type'], new Reference($id)]);
        }
    }
{@inheritdoc}