<?php

namespace Container0ndx4z1;

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 getEmailServiceService extends PhpList_Core_Core_ApplicationKernelDevDebugContainer
{
    /**
     * Gets the private 'PhpList\Core\Domain\Messaging\Service\EmailService' shared autowired service.
     *
     * @return \PhpList\Core\Domain\Messaging\Service\EmailService
     */
    public static function do($container, $lazyLoad = true)
    {
        include_once \dirname(__DIR__, 4).'/vendor/phplist/core/src/Domain/Messaging/Service/EmailService.php';

        $a = ($container->privates['mailer.mailer'] ?? $container->load('getMailer_MailerService'));

        if (isset($container->privates['PhpList\\Core\\Domain\\Messaging\\Service\\EmailService'])) {
            return $container->privates['PhpList\\Core\\Domain\\Messaging\\Service\\EmailService'];
        }
        $b = ($container->services['messenger.default_bus'] ?? self::getMessenger_DefaultBusService($container));

        if (isset($container->privates['PhpList\\Core\\Domain\\Messaging\\Service\\EmailService'])) {
            return $container->privates['PhpList\\Core\\Domain\\Messaging\\Service\\EmailService'];
        }

        $instance = new \PhpList\Core\Domain\Messaging\Service\EmailService($a, $b, $container->getEnv('MAILER_FROM'), $container->getEnv('BOUNCE_EMAIL'));

        if (isset($container->privates['PhpList\\Core\\Domain\\Messaging\\Service\\EmailService'])) {
            return $container->privates['PhpList\\Core\\Domain\\Messaging\\Service\\EmailService'];
        }

        return $container->privates['PhpList\\Core\\Domain\\Messaging\\Service\\EmailService'] = $instance;
    }
}
