<?php

namespace Container8hLddcF;

use Symfony\Component\DependencyInjection\Argument\RewindableGenerator;
use Symfony\Component\DependencyInjection\ContainerInterface;
use Symfony\Component\DependencyInjection\Exception\RuntimeException;

/**
 * @internal This class has been auto-generated by the Symfony Dependency Injection Component.
 */
class getSuluAdmin_MetadataProviderRegistryService extends App_KernelDevDebugContainer
{
    /**
     * Gets the private 'sulu_admin.metadata_provider_registry' shared service.
     *
     * @return \Sulu\Bundle\AdminBundle\Metadata\MetadataProviderRegistry
     */
    public static function do($container, $lazyLoad = true)
    {
        include_once \dirname(__DIR__, 5).''.\DIRECTORY_SEPARATOR.'vendor'.\DIRECTORY_SEPARATOR.'sulu'.\DIRECTORY_SEPARATOR.'sulu'.\DIRECTORY_SEPARATOR.'src'.\DIRECTORY_SEPARATOR.'Sulu'.\DIRECTORY_SEPARATOR.'Bundle'.\DIRECTORY_SEPARATOR.'AdminBundle'.\DIRECTORY_SEPARATOR.'Metadata'.\DIRECTORY_SEPARATOR.'MetadataProviderRegistry.php';
        include_once \dirname(__DIR__, 5).''.\DIRECTORY_SEPARATOR.'vendor'.\DIRECTORY_SEPARATOR.'sulu'.\DIRECTORY_SEPARATOR.'sulu'.\DIRECTORY_SEPARATOR.'src'.\DIRECTORY_SEPARATOR.'Sulu'.\DIRECTORY_SEPARATOR.'Bundle'.\DIRECTORY_SEPARATOR.'AdminBundle'.\DIRECTORY_SEPARATOR.'Metadata'.\DIRECTORY_SEPARATOR.'MetadataProviderInterface.php';
        include_once \dirname(__DIR__, 5).''.\DIRECTORY_SEPARATOR.'vendor'.\DIRECTORY_SEPARATOR.'sulu'.\DIRECTORY_SEPARATOR.'sulu'.\DIRECTORY_SEPARATOR.'src'.\DIRECTORY_SEPARATOR.'Sulu'.\DIRECTORY_SEPARATOR.'Bundle'.\DIRECTORY_SEPARATOR.'AdminBundle'.\DIRECTORY_SEPARATOR.'Metadata'.\DIRECTORY_SEPARATOR.'ListMetadata'.\DIRECTORY_SEPARATOR.'ListMetadataProvider.php';

        $container->privates['sulu_admin.metadata_provider_registry'] = $instance = new \Sulu\Bundle\AdminBundle\Metadata\MetadataProviderRegistry();

        $instance->addMetadataProvider('form', ($container->privates['sulu_admin.form_metadata_provider'] ?? $container->load('getSuluAdmin_FormMetadataProviderService')));
        $instance->addMetadataProvider('list', new \Sulu\Bundle\AdminBundle\Metadata\ListMetadata\ListMetadataProvider(new RewindableGenerator(function () use ($container) {
            yield 0 => ($container->privates['sulu_admin.xml_list_metadata_loader'] ?? $container->load('getSuluAdmin_XmlListMetadataLoaderService'));
            yield 1 => ($container->privates['sulu_form.metadata.dynamic_list_metadata_loader'] ?? $container->load('getSuluForm_Metadata_DynamicListMetadataLoaderService'));
        }, 2), new RewindableGenerator(function () use ($container) {
            yield 0 => ($container->privates['sulu_activity.activities_list_metadata_visitor'] ??= new \Sulu\Bundle\ActivityBundle\Infrastructure\Sulu\Metadata\ActivitiesListMetadataVisitor());
            yield 1 => ($container->privates['sulu_admin.expression_list_metadata_visitor'] ?? $container->load('getSuluAdmin_ExpressionListMetadataVisitorService'));
        }, 2)));

        return $instance;
    }
}
