<?php

namespace ContainerAyoJmP9;

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 getSecurity_Authentication_AccessListener_TwoFactor_MainService extends App_KernelProdContainer
{
    /*
     * Gets the private 'security.authentication.access_listener.two_factor.main' shared service.
     *
     * @return \Scheb\TwoFactorBundle\Security\Http\Firewall\TwoFactorAccessListener
     */
    public static function do($container, $lazyLoad = true)
    {
        include_once \dirname(__DIR__, 5).'/www/html/vendor/scheb/2fa-bundle/Security/Http/Firewall/TwoFactorAccessListener.php';
        include_once \dirname(__DIR__, 5).'/www/html/vendor/scheb/2fa-bundle/Security/Authorization/TwoFactorAccessDecider.php';

        $a = ($container->privates['security.firewall_config.two_factor.main'] ?? self::getSecurity_FirewallConfig_TwoFactor_MainService($container));

        if (isset($container->privates['security.authentication.access_listener.two_factor.main'])) {
            return $container->privates['security.authentication.access_listener.two_factor.main'];
        }
        $b = ($container->privates['security.http_utils'] ?? self::getSecurity_HttpUtilsService($container));

        if (isset($container->privates['security.authentication.access_listener.two_factor.main'])) {
            return $container->privates['security.authentication.access_listener.two_factor.main'];
        }

        $instance = new \Scheb\TwoFactorBundle\Security\Http\Firewall\TwoFactorAccessListener($a, ($container->privates['security.token_storage'] ?? self::getSecurity_TokenStorageService($container)), new \Scheb\TwoFactorBundle\Security\Authorization\TwoFactorAccessDecider(($container->privates['security.access_map'] ?? $container->load('getSecurity_AccessMapService')), ($container->privates['security.access.decision_manager'] ?? self::getSecurity_Access_DecisionManagerService($container)), $b, ($container->privates['security.logout_url_generator'] ?? self::getSecurity_LogoutUrlGeneratorService($container))));

        if (isset($container->privates['security.authentication.access_listener.two_factor.main'])) {
            return $container->privates['security.authentication.access_listener.two_factor.main'];
        }

        return $container->privates['security.authentication.access_listener.two_factor.main'] = $instance;
    }
}
