var/cache/dev/Container7xN4dB6/getSecurity_Authentication_GuardHandlerService.php line 33

Open in your IDE?
  1. <?php
  2. namespace Container7xN4dB6;
  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_GuardHandlerService extends App_KernelDevDebugContainer
  9. {
  10.     /**
  11.      * Gets the private 'security.authentication.guard_handler' shared service.
  12.      *
  13.      * @return \Symfony\Component\Security\Guard\GuardAuthenticatorHandler
  14.      *
  15.      * @deprecated Since symfony/security-bundle 5.3: The "security.authentication.guard_handler" 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.guard_handler" service is deprecated, use the new authenticator system instead.');
  20.         include_once \dirname(__DIR__4).'/vendor/symfony/security-http/Session/SessionAuthenticationStrategyInterface.php';
  21.         include_once \dirname(__DIR__4).'/vendor/symfony/security-http/Session/SessionAuthenticationStrategy.php';
  22.         $a = ($container->services['event_dispatcher'] ?? $container->getEventDispatcherService());
  23.         if (isset($container->privates['security.authentication.guard_handler'])) {
  24.             return $container->privates['security.authentication.guard_handler'];
  25.         }
  26.         $container->privates['security.authentication.guard_handler'] = $instance = new \Symfony\Component\Security\Guard\GuardAuthenticatorHandler(($container->services['.container.private.security.token_storage'] ?? $container->get_Container_Private_Security_TokenStorageService()), $a, []);
  27.         $instance->setSessionAuthenticationStrategy(new \Symfony\Component\Security\Http\Session\SessionAuthenticationStrategy('migrate', ($container->privates['security.csrf.token_storage'] ?? $container->load('getSecurity_Csrf_TokenStorageService'))));
  28.         return $instance;
  29.     }
  30. }