<?php

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

// This file has been auto-generated by the Symfony Dependency Injection Component for internal use.
// Returns the public 'mailer' shared service.

include_once \dirname(__DIR__, 4).'/vendor/symfony/mailer/MailerInterface.php';
include_once \dirname(__DIR__, 4).'/vendor/contao/core-bundle/src/Mailer/ContaoMailer.php';
include_once \dirname(__DIR__, 4).'/vendor/symfony/mailer/Mailer.php';
include_once \dirname(__DIR__, 4).'/vendor/symfony/mailer/Transport/TransportInterface.php';
include_once \dirname(__DIR__, 4).'/vendor/symfony/mailer/Transport/Transports.php';
include_once \dirname(__DIR__, 4).'/vendor/symfony/mailer/Transport.php';

return $this->services['mailer'] = new \Contao\CoreBundle\Mailer\ContaoMailer(new \Symfony\Component\Mailer\Mailer((new \Symfony\Component\Mailer\Transport(new RewindableGenerator(function () {
    yield 0 => $this->load('getMailer_TransportFactory_NullService.php');
    yield 1 => $this->load('getMailer_TransportFactory_SendmailService.php');
    yield 2 => $this->load('getMailer_TransportFactory_SmtpService.php');
}, 3)))->fromStrings(['main' => $this->getEnv('MAILER_DSN')]), NULL, ($this->services['event_dispatcher'] ?? $this->getEventDispatcherService())), ($this->services['Contao\\CoreBundle\\Mailer\\AvailableTransports'] ?? $this->load('getAvailableTransportsService.php')), ($this->services['request_stack'] ?? ($this->services['request_stack'] = new \Symfony\Component\HttpFoundation\RequestStack())));
