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

        $a = \HTMLPurifier_Config::createDefault();
        $a->set('Cache.SerializerPath', ($container->targetDir.''.'/htmlpurifier'));
        $a->set('HTML.ForbiddenElements', ['script', 'style']);
        $a->set('CSS.AllowedProperties', []);
        $a->set('URI.AllowedSchemes', ['http' => true, 'https' => true, 'mailto' => true]);
        $a->set('HTML.Doctype', 'XHTML 1.0 Transitional');
        $a->set('HTML.Allowed', 'p,br,b,strong,i,em,u,a[href|title],ul,ol,li,blockquote,img[src|alt|title],span,div');

        return $container->privates['PhpList\\Core\\Domain\\Messaging\\Service\\MailSizeChecker'] = new \PhpList\Core\Domain\Messaging\Service\MailSizeChecker(($container->privates['PhpList\\Core\\Domain\\Configuration\\Service\\Manager\\EventLogManager'] ?? $container->load('getEventLogManagerService')), new \PhpList\Core\Domain\Messaging\Service\Manager\MessageDataManager(($container->services['PhpList\\Core\\Domain\\Messaging\\Repository\\MessageDataRepository'] ?? $container->load('getMessageDataRepositoryService')), ($container->services['doctrine.orm.default_entity_manager'] ?? self::getDoctrine_Orm_DefaultEntityManagerService($container)), new \HTMLPurifier($a)), ($container->privates['cache.app.simple'] ?? $container->load('getCache_App_SimpleService')), ($container->privates['monolog.logger'] ?? self::getMonolog_LoggerService($container)), $container->getEnv('MAX_MAILSIZE'));
    }
}
