<?php
namespace ContainerHpjT63u;
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_GuardHandlerService extends EADPlataforma_KernelDevDebugContainer
{
/**
* Gets the private 'security.authentication.guard_handler' shared service.
*
* @return \Symfony\Component\Security\Guard\GuardAuthenticatorHandler
*
* @deprecated Since symfony/security-bundle 5.3: The "security.authentication.guard_handler" 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.guard_handler" service is deprecated, use the new authenticator system instead.');
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->services['event_dispatcher'] ?? $container->getEventDispatcherService());
if (isset($container->privates['security.authentication.guard_handler'])) {
return $container->privates['security.authentication.guard_handler'];
}
$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, []);
$instance->setSessionAuthenticationStrategy(new \Symfony\Component\Security\Http\Session\SessionAuthenticationStrategy('migrate', ($container->privates['security.csrf.token_storage'] ?? $container->load('getSecurity_Csrf_TokenStorageService'))));
return $instance;
}
}