<?php

namespace ContainerRYWeSXx;

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 getApiPlatform_ArgumentResolver_PayloadService extends App_KernelProdContainer
{
    /*
     * Gets the private 'api_platform.argument_resolver.payload' shared service.
     *
     * @return \ApiPlatform\Symfony\Bundle\ArgumentResolver\PayloadArgumentResolver
     */
    public static function do($container, $lazyLoad = true)
    {
        $a = ($container->privates['api_platform.doctrine.odm.metadata.resource.metadata_collection_factory'] ?? self::getApiPlatform_Doctrine_Odm_Metadata_Resource_MetadataCollectionFactoryService($container));

        if (isset($container->privates['api_platform.argument_resolver.payload'])) {
            return $container->privates['api_platform.argument_resolver.payload'];
        }
        $b = ($container->privates['api_platform.openapi.serializer_context_builder'] ?? $container->load('getApiPlatform_Openapi_SerializerContextBuilderService'));

        if (isset($container->privates['api_platform.argument_resolver.payload'])) {
            return $container->privates['api_platform.argument_resolver.payload'];
        }

        $instance = new \ApiPlatform\Symfony\Bundle\ArgumentResolver\PayloadArgumentResolver($a, $b);

        if (isset($container->privates['api_platform.argument_resolver.payload'])) {
            return $container->privates['api_platform.argument_resolver.payload'];
        }

        return $container->privates['api_platform.argument_resolver.payload'] = $instance;
    }
}
