DependencyInjection/Compiler/RegisterProcessorPass.php
public function process(ContainerBuilder $container)
    {
        if (!$container->hasDefinition($this->registryService) && !$container->hasAlias($this->registryService))
        {
            return;
        }

        $definition = $container->findDefinition($this->registryService);

        foreach ($container->findTaggedServiceIds($this->tagName) as $id => $tags)
        {
            foreach ($tags as $tag)
            {
                if(!isset($tag['type']))
                {
                    return;
                }

                $definition->addMethodCall('register',  array($tag['type'], new Reference($id)));
            }
        }
    }
public function process(ContainerBuilder $container)
    {
        if (!$container->hasDefinition($this->registryService) && !$container->hasAlias($this->registryService))
        {
            return;
        }

        $definition = $container->findDefinition($this->registryService);

        foreach ($container->findTaggedServiceIds($this->tagName) as $id => $tags)
        {
            foreach ($tags as $tag)
            {
                if(!isset($tag['type']))
                {
                    return;
                }

                $definition->addMethodCall('register',  array($tag['type'], new Reference($id)));
            }
        }
    }
{@inheritdoc}