<?php

namespace ContainerEKZIeE8;

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_Authenticator_JsonLogin_AdminService extends App_KernelProdContainer
{
    /*
     * Gets the private 'security.authenticator.json_login.admin' shared service.
     *
     * @return \Symfony\Component\Security\Http\Authenticator\JsonLoginAuthenticator
     */
    public static function do($container, $lazyLoad = true)
    {
        $a = ($container->privates['security.http_utils'] ?? self::getSecurity_HttpUtilsService($container));

        if (isset($container->privates['security.authenticator.json_login.admin'])) {
            return $container->privates['security.authenticator.json_login.admin'];
        }
        $b = ($container->privates['sulu_security.user_provider'] ?? $container->load('getSuluSecurity_UserProviderService'));

        if (isset($container->privates['security.authenticator.json_login.admin'])) {
            return $container->privates['security.authenticator.json_login.admin'];
        }
        $c = ($container->services['router'] ?? self::getRouterService($container));

        if (isset($container->privates['security.authenticator.json_login.admin'])) {
            return $container->privates['security.authenticator.json_login.admin'];
        }

        $container->privates['security.authenticator.json_login.admin'] = $instance = new \Symfony\Component\Security\Http\Authenticator\JsonLoginAuthenticator($a, $b, new \Symfony\Component\Security\Http\Authentication\CustomAuthenticationSuccessHandler(new \Sulu\Bundle\SecurityBundle\Security\AuthenticationHandler($c, $container->parameters['sulu_security.two_factor_methods']), [], 'admin'), new \Symfony\Component\Security\Http\Authentication\CustomAuthenticationFailureHandler(new \Sulu\Bundle\SecurityBundle\Security\AuthenticationHandler($c, $container->parameters['sulu_security.two_factor_methods']), []), ['check_path' => 'sulu_admin.login_check', 'use_forward' => false, 'login_path' => '/login', 'username_path' => 'username', 'password_path' => 'password'], ($container->privates['property_accessor'] ?? self::getPropertyAccessorService($container)));

        if ($container->has('translator')) {
            $instance->setTranslator(($container->services['translator'] ?? self::getTranslatorService($container)));
        }

        return $instance;
    }
}
