<?php

namespace Container5kDwklr;

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 getUpgradeCommandService extends App_KernelProdContainer
{
    /*
     * Gets the private 'App\Install\Command\UpgradeCommand' shared autowired service.
     *
     * @return \App\Install\Command\UpgradeCommand
     */
    public static function do($container, $lazyLoad = true)
    {
        include_once \dirname(__DIR__, 3).''.\DIRECTORY_SEPARATOR.'vendor'.\DIRECTORY_SEPARATOR.'symfony'.\DIRECTORY_SEPARATOR.'console'.\DIRECTORY_SEPARATOR.'Command'.\DIRECTORY_SEPARATOR.'Command.php';
        include_once \dirname(__DIR__, 3).''.\DIRECTORY_SEPARATOR.'core'.\DIRECTORY_SEPARATOR.'backend'.\DIRECTORY_SEPARATOR.'Install'.\DIRECTORY_SEPARATOR.'Command'.\DIRECTORY_SEPARATOR.'BaseCommand.php';
        include_once \dirname(__DIR__, 3).''.\DIRECTORY_SEPARATOR.'core'.\DIRECTORY_SEPARATOR.'backend'.\DIRECTORY_SEPARATOR.'Install'.\DIRECTORY_SEPARATOR.'Command'.\DIRECTORY_SEPARATOR.'BaseStepExecutorCommand.php';
        include_once \dirname(__DIR__, 3).''.\DIRECTORY_SEPARATOR.'core'.\DIRECTORY_SEPARATOR.'backend'.\DIRECTORY_SEPARATOR.'Install'.\DIRECTORY_SEPARATOR.'Command'.\DIRECTORY_SEPARATOR.'UpgradeCommand.php';
        include_once \dirname(__DIR__, 3).''.\DIRECTORY_SEPARATOR.'core'.\DIRECTORY_SEPARATOR.'backend'.\DIRECTORY_SEPARATOR.'Engine'.\DIRECTORY_SEPARATOR.'Service'.\DIRECTORY_SEPARATOR.'ProcessSteps'.\DIRECTORY_SEPARATOR.'ProcessStepExecutorInterface.php';
        include_once \dirname(__DIR__, 3).''.\DIRECTORY_SEPARATOR.'core'.\DIRECTORY_SEPARATOR.'backend'.\DIRECTORY_SEPARATOR.'Engine'.\DIRECTORY_SEPARATOR.'Service'.\DIRECTORY_SEPARATOR.'ProcessSteps'.\DIRECTORY_SEPARATOR.'ProcessStepExecutor.php';
        include_once \dirname(__DIR__, 3).''.\DIRECTORY_SEPARATOR.'core'.\DIRECTORY_SEPARATOR.'backend'.\DIRECTORY_SEPARATOR.'Install'.\DIRECTORY_SEPARATOR.'Service'.\DIRECTORY_SEPARATOR.'Upgrade'.\DIRECTORY_SEPARATOR.'UpgradeHandlerInterface.php';
        include_once \dirname(__DIR__, 3).''.\DIRECTORY_SEPARATOR.'core'.\DIRECTORY_SEPARATOR.'backend'.\DIRECTORY_SEPARATOR.'Install'.\DIRECTORY_SEPARATOR.'Service'.\DIRECTORY_SEPARATOR.'Upgrade'.\DIRECTORY_SEPARATOR.'UpgradeHandler.php';

        $container->privates['App\\Install\\Command\\UpgradeCommand'] = $instance = new \App\Install\Command\UpgradeCommand(new \App\Install\Service\Upgrade\UpgradeHandler(new RewindableGenerator(function () use ($container) {
            yield 0 => (isset($container->factories['service_container']['App\\Install\\Service\\Upgrade\\Steps\\AddNewConfigEntries']) ? $container->factories['service_container']['App\\Install\\Service\\Upgrade\\Steps\\AddNewConfigEntries']($container) : $container->load('getAddNewConfigEntriesService'));
            yield 1 => (isset($container->factories['service_container']['App\\Install\\Service\\Upgrade\\Steps\\BackupOriginalModules']) ? $container->factories['service_container']['App\\Install\\Service\\Upgrade\\Steps\\BackupOriginalModules']($container) : $container->load('getBackupOriginalModulesService'));
            yield 2 => (isset($container->factories['service_container']['App\\Install\\Service\\Upgrade\\Steps\\CheckPackage']) ? $container->factories['service_container']['App\\Install\\Service\\Upgrade\\Steps\\CheckPackage']($container) : $container->load('getCheckPackageService'));
            yield 3 => (isset($container->factories['service_container']['App\\Install\\Service\\Upgrade\\Steps\\CheckPermissions']) ? $container->factories['service_container']['App\\Install\\Service\\Upgrade\\Steps\\CheckPermissions']($container) : $container->load('getCheckPermissionsService'));
            yield 4 => (isset($container->factories['service_container']['App\\Install\\Service\\Upgrade\\Steps\\ClearSymfonyCache']) ? $container->factories['service_container']['App\\Install\\Service\\Upgrade\\Steps\\ClearSymfonyCache']($container) : $container->load('getClearSymfonyCacheService'));
            yield 5 => (isset($container->factories['service_container']['App\\Install\\Service\\Upgrade\\Steps\\ExtractPackage']) ? $container->factories['service_container']['App\\Install\\Service\\Upgrade\\Steps\\ExtractPackage']($container) : $container->load('getExtractPackageService'));
            yield 6 => (isset($container->factories['service_container']['App\\Install\\Service\\Upgrade\\Steps\\FilesToDeleteCheck']) ? $container->factories['service_container']['App\\Install\\Service\\Upgrade\\Steps\\FilesToDeleteCheck']($container) : $container->load('getFilesToDeleteCheckService'));
            yield 7 => (isset($container->factories['service_container']['App\\Install\\Service\\Upgrade\\Steps\\FinalizeClearSymfonyCache']) ? $container->factories['service_container']['App\\Install\\Service\\Upgrade\\Steps\\FinalizeClearSymfonyCache']($container) : $container->load('getFinalizeClearSymfonyCacheService'));
            yield 8 => (isset($container->factories['service_container']['App\\Install\\Service\\Upgrade\\Steps\\InstallUpgradePackage']) ? $container->factories['service_container']['App\\Install\\Service\\Upgrade\\Steps\\InstallUpgradePackage']($container) : $container->load('getInstallUpgradePackageService'));
            yield 9 => (isset($container->factories['service_container']['App\\Install\\Service\\Upgrade\\Steps\\LegacyPostUpgrade']) ? $container->factories['service_container']['App\\Install\\Service\\Upgrade\\Steps\\LegacyPostUpgrade']($container) : $container->load('getLegacyPostUpgradeService'));
            yield 10 => (isset($container->factories['service_container']['App\\Install\\Service\\Upgrade\\Steps\\MetadataMerge']) ? $container->factories['service_container']['App\\Install\\Service\\Upgrade\\Steps\\MetadataMerge']($container) : $container->load('getMetadataMergeService'));
            yield 11 => (isset($container->factories['service_container']['App\\Install\\Service\\Upgrade\\Steps\\RunMigrations']) ? $container->factories['service_container']['App\\Install\\Service\\Upgrade\\Steps\\RunMigrations']($container) : $container->load('getRunMigrationsService'));
        }, 12), ($container->services['monolog.logger.upgrade'] ?? $container->load('getMonolog_Logger_UpgradeService'))), ($container->privates['App\\Engine\\LegacyHandler\\DefaultLegacyHandler'] ?? $container->load('getDefaultLegacyHandlerService')));

        $instance->setDefaultSessionName('SCRMSESSID');
        $instance->setLegacySessionName('SCRMSESSID');
        $instance->setRequestStack(($container->services['request_stack'] ??= new \Symfony\Component\HttpFoundation\RequestStack()));
        $instance->setAppStringsHandler(($container->privates['App\\Languages\\LegacyHandler\\AppStringsHandler'] ?? $container->load('getAppStringsHandlerService')));
        $instance->setName('suitecrm:app:upgrade');

        return $instance;
    }
}
