var/cache/dev/Container9J9tzGK/getSecurity_Authentication_Listener_Form_MainService.php line 30

Open in your IDE?
  1. <?php
  2. namespace Container9J9tzGK;
  3. use Symfony\Component\DependencyInjection\Argument\RewindableGenerator;
  4. use Symfony\Component\DependencyInjection\Exception\RuntimeException;
  5. /**
  6.  * @internal This class has been auto-generated by the Symfony Dependency Injection Component.
  7.  */
  8. class getSecurity_Authentication_Listener_Form_MainService extends App_KernelDevDebugContainer
  9. {
  10.     /**
  11.      * Gets the private 'security.authentication.listener.form.main' shared service.
  12.      *
  13.      * @return \Symfony\Component\Security\Http\Firewall\UsernamePasswordFormAuthenticationListener
  14.      *
  15.      * @deprecated Since symfony/security-bundle 5.3: The "security.authentication.listener.form.main" service is deprecated, use the new authenticator system instead.
  16.      */
  17.     public static function do($container$lazyLoad true)
  18.     {
  19.         trigger_deprecation('symfony/security-bundle''5.3''The "security.authentication.listener.form.main" service is deprecated, use the new authenticator system instead.');
  20.         include_once \dirname(__DIR__4).'/vendor/symfony/security-http/Authentication/AuthenticationSuccessHandlerInterface.php';
  21.         include_once \dirname(__DIR__4).'/vendor/symfony/security-http/Util/TargetPathTrait.php';
  22.         include_once \dirname(__DIR__4).'/vendor/symfony/security-http/Authentication/DefaultAuthenticationSuccessHandler.php';
  23.         include_once \dirname(__DIR__4).'/vendor/symfony/security-http/Authentication/AuthenticationFailureHandlerInterface.php';
  24.         include_once \dirname(__DIR__4).'/vendor/symfony/security-http/Authentication/DefaultAuthenticationFailureHandler.php';
  25.         $a = ($container->privates['security.authentication.manager'] ?? $container->load('getSecurity_Authentication_ManagerService'));
  26.         if (isset($container->privates['security.authentication.listener.form.main'])) {
  27.             return $container->privates['security.authentication.listener.form.main'];
  28.         }
  29.         $b = ($container->services['http_kernel'] ?? $container->getHttpKernelService());
  30.         if (isset($container->privates['security.authentication.listener.form.main'])) {
  31.             return $container->privates['security.authentication.listener.form.main'];
  32.         }
  33.         $c = ($container->services['event_dispatcher'] ?? $container->getEventDispatcherService());
  34.         if (isset($container->privates['security.authentication.listener.form.main'])) {
  35.             return $container->privates['security.authentication.listener.form.main'];
  36.         }
  37.         $d = ($container->privates['security.http_utils'] ?? $container->load('getSecurity_HttpUtilsService'));
  38.         $e = new \Symfony\Component\Security\Http\Authentication\DefaultAuthenticationSuccessHandler($d, [], ($container->privates['monolog.logger'] ?? $container->getMonolog_LoggerService()));
  39.         $e->setOptions(['login_path' => '/connexion''always_use_default_target_path' => false'default_target_path' => '/''target_path_parameter' => '_target_path''use_referer' => false]);
  40.         $e->setFirewallName('main');
  41.         $f = ($container->privates['monolog.logger.security'] ?? $container->load('getMonolog_Logger_SecurityService'));
  42.         $g = new \Symfony\Component\Security\Http\Authentication\DefaultAuthenticationFailureHandler($b$d, [], $f);
  43.         $g->setOptions(['login_path' => '/connexion''failure_path' => NULL'failure_forward' => false'failure_path_parameter' => '_failure_path']);
  44.         $container->privates['security.authentication.listener.form.main'] = $instance = new \Symfony\Component\Security\Http\Firewall\UsernamePasswordFormAuthenticationListener(($container->services['.container.private.security.token_storage'] ?? $container->get_Container_Private_Security_TokenStorageService()), $a, ($container->privates['security.authentication.session_strategy'] ?? $container->load('getSecurity_Authentication_SessionStrategyService')), $d'main'$e$g, ['login_path' => '/connexion''check_path' => '/connexion''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], $f$cNULL);
  45.         $instance->setRememberMeServices(($container->privates['security.authentication.rememberme.services.simplehash.main'] ?? $container->load('getSecurity_Authentication_Rememberme_Services_Simplehash_MainService')));
  46.         return $instance;
  47.     }
  48. }