<?php
namespace ContainerRXdXI6z;
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 getSecurity_Authentication_Listener_Form_DemoFrontendService extends App_KernelDevDebugContainer
{
/**
* Gets the private 'security.authentication.listener.form.demo_frontend' shared service.
*
* @return \Symfony\Component\Security\Http\Firewall\UsernamePasswordFormAuthenticationListener
*
* @deprecated Since symfony/security-bundle 5.3: The "security.authentication.listener.form.demo_frontend" service is deprecated, use the new authenticator system instead.
*/
public static function do($container, $lazyLoad = true)
{
trigger_deprecation('symfony/security-bundle', '5.3', 'The "security.authentication.listener.form.demo_frontend" service is deprecated, use the new authenticator system instead.');
include_once \dirname(__DIR__, 4).'/vendor/symfony/security-http/Authentication/AuthenticationSuccessHandlerInterface.php';
include_once \dirname(__DIR__, 4).'/vendor/symfony/security-http/Authentication/CustomAuthenticationSuccessHandler.php';
include_once \dirname(__DIR__, 4).'/vendor/symfony/security-http/Authentication/AuthenticationFailureHandlerInterface.php';
include_once \dirname(__DIR__, 4).'/vendor/symfony/security-http/Authentication/DefaultAuthenticationFailureHandler.php';
include_once \dirname(__DIR__, 4).'/vendor/symfony/security-http/Session/SessionAuthenticationStrategyInterface.php';
include_once \dirname(__DIR__, 4).'/vendor/symfony/security-http/Session/SessionAuthenticationStrategy.php';
$a = ($container->privates['security.http_utils'] ?? $container->getSecurity_HttpUtilsService());
$b = ($container->services['monolog.logger.security'] ?? $container->getMonolog_Logger_SecurityService());
$c = new \Symfony\Component\Security\Http\Authentication\DefaultAuthenticationFailureHandler(($container->services['http_kernel'] ?? $container->getHttpKernelService()), $a, [], $b);
$c->setOptions(['login_path' => 'account-login', 'failure_path' => NULL, 'failure_forward' => false, 'failure_path_parameter' => '_failure_path']);
$container->privates['security.authentication.listener.form.demo_frontend'] = $instance = new \Symfony\Component\Security\Http\Firewall\UsernamePasswordFormAuthenticationListener(($container->services['.container.private.security.token_storage'] ?? $container->get_Container_Private_Security_TokenStorageService()), ($container->privates['security.authentication.manager'] ?? $container->load('getSecurity_Authentication_ManagerService')), ($container->privates['security.authentication.session_strategy'] ?? ($container->privates['security.authentication.session_strategy'] = new \Symfony\Component\Security\Http\Session\SessionAuthenticationStrategy('migrate'))), $a, 'demo_frontend', new \Symfony\Component\Security\Http\Authentication\CustomAuthenticationSuccessHandler(($container->privates['App\\EventListener\\AuthenticationLoginListener'] ?? $container->load('getAuthenticationLoginListenerService')), ['login_path' => 'account-login', 'default_target_path' => 'account-index', 'always_use_default_target_path' => false, 'target_path_parameter' => '_target_path', 'use_referer' => false], 'demo_frontend'), $c, ['login_path' => 'account-login', 'check_path' => 'account-login', 'use_forward' => false, 'require_previous_session' => false, 'username_parameter' => '_username', 'password_parameter' => '_password', 'csrf_parameter' => '_csrf_token', 'csrf_token_id' => 'authenticate', 'enable_csrf' => false, 'post_only' => true, 'form_only' => false], $b, ($container->services['event_dispatcher'] ?? $container->getEventDispatcherService()), ($container->services['.container.private.security.csrf.token_manager'] ?? $container->load('get_Container_Private_Security_Csrf_TokenManagerService')));
$instance->setRememberMeServices(($container->privates['security.authentication.rememberme.services.simplehash.demo_frontend.two_factor_decorator'] ?? $container->load('getSecurity_Authentication_Rememberme_Services_Simplehash_DemoFrontend_TwoFactorDecoratorService')));
return $instance;
}
}