<?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 get_Messenger_HandlerDescriptor_CvIyXXWService extends App_KernelProdContainer
{
    /*
     * Gets the private '.messenger.handler_descriptor.CvIyXXW' shared service.
     *
     * @return \Symfony\Component\Messenger\Handler\HandlerDescriptor
     */
    public static function do($container, $lazyLoad = true)
    {
        $a = ($container->privates['validator'] ?? self::getValidatorService($container));

        if (isset($container->privates['.messenger.handler_descriptor.CvIyXXW'])) {
            return $container->privates['.messenger.handler_descriptor.CvIyXXW'];
        }
        $b = ($container->services['doctrine_mongodb.odm.default_document_manager'] ?? $container->load('getDoctrineMongodb_Odm_DefaultDocumentManagerService'));

        if (isset($container->privates['.messenger.handler_descriptor.CvIyXXW'])) {
            return $container->privates['.messenger.handler_descriptor.CvIyXXW'];
        }
        $c = ($container->services['messenger.default_bus'] ?? self::getMessenger_DefaultBusService($container));

        if (isset($container->privates['.messenger.handler_descriptor.CvIyXXW'])) {
            return $container->privates['.messenger.handler_descriptor.CvIyXXW'];
        }
        $d = ($container->privates['App\\Core\\Service\\CustomsDeclaration\\CustomsOrganizationGroupResolver'] ??= new \App\Core\Service\CustomsDeclaration\CustomsOrganizationGroupResolver());

        $instance = new \Symfony\Component\Messenger\Handler\HandlerDescriptor(new \App\Core\Import\Handler\SwisspostReturnCustomsDeclarationImportHandler($a, $b, ($container->privates['App\\Core\\Import\\ReportSender'] ?? $container->load('getReportSenderService')), new \App\Core\Service\CustomsDeclaration\ImportCustomsDeclarationService(($container->privates['App\\Core\\Service\\CustomsDeclaration\\CustomsDeclarationBuilder'] ?? $container->load('getCustomsDeclarationBuilderService')), ($container->privates['App\\Core\\Service\\CustomsDeclaration\\CustomsInvoiceNumberGenerator'] ?? $container->load('getCustomsInvoiceNumberGeneratorService')), $d, $b, ($container->privates['monolog.logger'] ?? self::getMonolog_LoggerService($container))), $d, $c), []);

        if (isset($container->privates['.messenger.handler_descriptor.CvIyXXW'])) {
            return $container->privates['.messenger.handler_descriptor.CvIyXXW'];
        }

        return $container->privates['.messenger.handler_descriptor.CvIyXXW'] = $instance;
    }
}
