<?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 getEditorUploadControllerService extends PhpList_Core_Core_ApplicationKernelDevDebugContainer
{
    /**
     * Gets the public 'PhpList\RestBundle\Messaging\Controller\EditorUploadController' shared autowired service.
     *
     * @return \PhpList\RestBundle\Messaging\Controller\EditorUploadController
     */
    public static function do($container, $lazyLoad = true)
    {
        include_once \dirname(__DIR__, 4).'/vendor/symfony/framework-bundle/Controller/AbstractController.php';
        include_once \dirname(__DIR__, 4).'/vendor/phplist/rest-api/src/Common/Controller/BaseController.php';
        include_once \dirname(__DIR__, 4).'/vendor/phplist/rest-api/src/Messaging/Controller/EditorUploadController.php';
        include_once \dirname(__DIR__, 4).'/vendor/phplist/core/src/Domain/Common/Service/UploadService.php';
        include_once \dirname(__DIR__, 4).'/vendor/phplist/core/src/Domain/Common/Validator/UploadValidator.php';
        include_once \dirname(__DIR__, 4).'/vendor/phplist/core/src/Domain/Common/Storage/UploadStorageInterface.php';
        include_once \dirname(__DIR__, 4).'/vendor/phplist/core/src/Domain/Common/Storage/LocalUploadStorage.php';
        include_once \dirname(__DIR__, 4).'/vendor/phplist/core/src/Domain/Common/Service/DirectoryListingService.php';
        include_once \dirname(__DIR__, 4).'/vendor/phplist/core/src/Domain/Common/Validator/UploadDirectoryValidator.php';

        $container->services['PhpList\\RestBundle\\Messaging\\Controller\\EditorUploadController'] = $instance = new \PhpList\RestBundle\Messaging\Controller\EditorUploadController(($container->services['PhpList\\Core\\Security\\Authentication'] ?? $container->load('getAuthenticationService')), ($container->privates['PhpList\\RestBundle\\Common\\Validator\\RequestValidator'] ?? $container->load('getRequestValidatorService')), new \PhpList\Core\Domain\Common\Service\UploadService(new \PhpList\Core\Domain\Common\Validator\UploadValidator($container->parameters['phplist.uploads.allowed_mime_types'], $container->parameters['phplist.uploads.allowed_extensions'], $container->getEnv('PHPLIST_UPLOADS_MAX_SIZE')), new \PhpList\Core\Domain\Common\Storage\LocalUploadStorage(\dirname(__DIR__, 4), $container->getEnv('UPLOADIMAGES_DIR')), ($container->services['request_stack'] ??= new \Symfony\Component\HttpFoundation\RequestStack()), $container->getEnv('UPLOADIMAGES_DIR')), new \PhpList\Core\Domain\Common\Service\DirectoryListingService(), new \PhpList\Core\Domain\Common\Validator\UploadDirectoryValidator((\dirname(__DIR__, 4).'/public')), ($container->privates['PhpList\\RestBundle\\Messaging\\Serializer\\EditorUploadNormalizer'] ??= new \PhpList\RestBundle\Messaging\Serializer\EditorUploadNormalizer()), ($container->privates['PhpList\\RestBundle\\Messaging\\Serializer\\FileListingNormalizer'] ?? self::getFileListingNormalizerService($container)), $container->getEnv('UPLOADIMAGES_DIR'));

        $instance->setContainer(($container->privates['.service_locator.O2p6Lk7'] ?? $container->load('get_ServiceLocator_O2p6Lk7Service'))->withContext('PhpList\\RestBundle\\Messaging\\Controller\\EditorUploadController', $container));

        return $instance;
    }
}
