<?php

namespace ContainerAyoJmP9;

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 getAsyncTaskFailureMessageListenerService extends App_KernelProdContainer
{
    /*
     * Gets the private 'App\AsyncTask\Service\MessageListener\AsyncTaskFailureMessageListener' shared autowired service.
     *
     * @return \App\AsyncTask\Service\MessageListener\AsyncTaskFailureMessageListener
     */
    public static function do($container, $lazyLoad = true)
    {
        include_once \dirname(__DIR__, 5).'/www/html/core/backend/AsyncTask/Service/MessageListener/AsyncTaskFailureMessageListener.php';
        include_once \dirname(__DIR__, 5).'/www/html/core/backend/AsyncTask/Service/TaskFailureHandler/AsyncTaskFailureHandlerRegistryInterface.php';
        include_once \dirname(__DIR__, 5).'/www/html/core/backend/AsyncTask/Service/TaskFailureHandler/AsyncTaskFailureHandlerRegistry.php';

        $a = ($container->privates['App\\Authentication\\LegacyHandler\\Authentication'] ?? $container->load('getAuthenticationService'));

        if (isset($container->privates['App\\AsyncTask\\Service\\MessageListener\\AsyncTaskFailureMessageListener'])) {
            return $container->privates['App\\AsyncTask\\Service\\MessageListener\\AsyncTaskFailureMessageListener'];
        }

        $instance = new \App\AsyncTask\Service\MessageListener\AsyncTaskFailureMessageListener(new \App\AsyncTask\Service\TaskFailureHandler\AsyncTaskFailureHandlerRegistry(new RewindableGenerator(function () use ($container) {
            yield 0 => ($container->privates['App\\ManualMigrations\\AsyncTask\\AsyncManualMigrationFailureHandler'] ?? $container->load('getAsyncManualMigrationFailureHandlerService'));
            yield 1 => ($container->privates['App\\Process\\AsyncTask\\AsyncProcessFailureHandler'] ?? $container->load('getAsyncProcessFailureHandlerService'));
        }, 2)), $a, ($container->privates['monolog.logger.messenger'] ?? $container->load('getMonolog_Logger_MessengerService')));

        if (isset($container->privates['App\\AsyncTask\\Service\\MessageListener\\AsyncTaskFailureMessageListener'])) {
            return $container->privates['App\\AsyncTask\\Service\\MessageListener\\AsyncTaskFailureMessageListener'];
        }

        return $container->privates['App\\AsyncTask\\Service\\MessageListener\\AsyncTaskFailureMessageListener'] = $instance;
    }
}
