<?php

namespace Container35X5zJE;

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

/**
 * @internal This class has been auto-generated by the Symfony Dependency Injection Component.
 */
class getSuluAdmin_FieldMetadataValidator_ChainService extends App_KernelDevDebugContainer
{
    /**
     * Gets the private 'sulu_admin.field_metadata_validator.chain' shared service.
     *
     * @return \Sulu\Bundle\AdminBundle\Metadata\FormMetadata\Validation\ChainFieldMetadataValidator
     */
    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.'FormMetadata'.\DIRECTORY_SEPARATOR.'Validation'.\DIRECTORY_SEPARATOR.'FieldMetadataValidatorInterface.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.'FormMetadata'.\DIRECTORY_SEPARATOR.'Validation'.\DIRECTORY_SEPARATOR.'ChainFieldMetadataValidator.php';

        return $container->privates['sulu_admin.field_metadata_validator.chain'] = new \Sulu\Bundle\AdminBundle\Metadata\FormMetadata\Validation\ChainFieldMetadataValidator(new RewindableGenerator(function () use ($container) {
            yield 0 => ($container->privates['sulu_media.field_metadata_validator.image_map'] ?? ($container->privates['sulu_media.field_metadata_validator.image_map'] = new \Sulu\Bundle\MediaBundle\Metadata\ImageMapFieldMetadataValidator()));
            yield 1 => ($container->privates['sulu_admin.field_metadata_validator.types_property'] ?? ($container->privates['sulu_admin.field_metadata_validator.types_property'] = new \Sulu\Bundle\AdminBundle\Metadata\FormMetadata\Validation\TypesPropertyFieldMetadataValidator()));
            yield 2 => ($container->privates['sulu_admin.field_metadata_validator.block'] ?? ($container->privates['sulu_admin.field_metadata_validator.block'] = new \Sulu\Bundle\AdminBundle\Metadata\FormMetadata\Validation\BlockFieldMetadataValidator()));
        }, 3));
    }
}
