<?php

namespace ContainerOQlxh73;

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

/*
 * @internal This class has been auto-generated by the Symfony Dependency Injection Component.
 */
class getPurgeMessengerCommandService extends KernelProdContainer
{
    /*
     * Gets the private 'Akeneo\Tool\Bundle\MessengerBundle\Command\PurgeMessengerCommand' shared service.
     *
     * @return \Akeneo\Tool\Bundle\MessengerBundle\Command\PurgeMessengerCommand
     */
    public static function do($container, $lazyLoad = true)
    {
        include_once \dirname(__DIR__, 4).'/vendor/symfony/console/Command/Command.php';
        include_once \dirname(__DIR__, 4).'/vendor/akeneo/pim-community-dev/src/Akeneo/Tool/Bundle/MessengerBundle/Command/PurgeMessengerCommand.php';
        include_once \dirname(__DIR__, 4).'/vendor/akeneo/pim-community-dev/src/Akeneo/Tool/Bundle/MessengerBundle/Query/PurgeDoctrineQueueQuery.php';

        $container->privates['Akeneo\\Tool\\Bundle\\MessengerBundle\\Command\\PurgeMessengerCommand'] = $instance = new \Akeneo\Tool\Bundle\MessengerBundle\Command\PurgeMessengerCommand(new \Akeneo\Tool\Bundle\MessengerBundle\Query\PurgeDoctrineQueueQuery(($container->services['doctrine.dbal.default_connection'] ?? $container->getDoctrine_Dbal_DefaultConnectionService())));

        $instance->setName('akeneo:messenger:doctrine:purge-messages');
        $instance->setDescription('Purges the messenger SQL table in terms of the given retention time (default is 7200 seconds)');

        return $instance;
    }
}
