var/cache/dev/ContainerGMhDEyb/getContao_Security_TwoFactor_TrustedDeviceManagerService.php line 23

Open in your IDE?
  1. <?php
  2. namespace ContainerGMhDEyb;
  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 getContao_Security_TwoFactor_TrustedDeviceManagerService extends Contao_ManagerBundle_HttpKernel_ContaoKernelDevDebugContainer
  9. {
  10. /**
  11. * Gets the public 'contao.security.two_factor.trusted_device_manager' shared service.
  12. *
  13. * @return \Contao\CoreBundle\Security\TwoFactor\TrustedDeviceManager
  14. */
  15. public static function do($container, $lazyLoad = true)
  16. {
  17. include_once \dirname(__DIR__, 4).'/vendor/scheb/2fa-trusted-device/Security/TwoFactor/Trusted/TrustedDeviceManagerInterface.php';
  18. include_once \dirname(__DIR__, 4).'/vendor/contao/core-bundle/src/Security/TwoFactor/TrustedDeviceManager.php';
  19. $a = ($container->services['doctrine.orm.default_entity_manager'] ?? $container->load('getDoctrine_Orm_DefaultEntityManagerService'));
  20. if (isset($container->services['contao.security.two_factor.trusted_device_manager'])) {
  21. return $container->services['contao.security.two_factor.trusted_device_manager'];
  22. }
  23. return $container->services['contao.security.two_factor.trusted_device_manager'] = new \Contao\CoreBundle\Security\TwoFactor\TrustedDeviceManager(($container->services['request_stack'] ?? ($container->services['request_stack'] = new \Symfony\Component\HttpFoundation\RequestStack())), ($container->privates['scheb_two_factor.trusted_token_storage'] ?? $container->getSchebTwoFactor_TrustedTokenStorageService()), $a);
  24. }
  25. }