Skip to content

Commit d653ee4

Browse files
committed
using custom cache pool
1 parent d8ed065 commit d653ee4

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

src/Symfony/Bundle/SecurityBundle/DependencyInjection/Security/Factory/LoginLinkFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ public function createAuthenticator(ContainerBuilder $container, string $firewal
9292
}
9393

9494
if (null !== $config['max_uses'] && !isset($config['used_link_cache'])) {
95-
$config['used_link_cache'] = 'cache.app';
95+
$config['used_link_cache'] = 'security.authenticator.cache.expired_links';
9696
}
9797

9898
$expiredStorageId = null;

src/Symfony/Bundle/SecurityBundle/Resources/config/security_authenticator_login_link.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,11 @@
4848
abstract_arg('expired login link storage'),
4949
])
5050

51+
->set('security.authenticator.cache.expired_links')
52+
->parent('cache.app')
53+
->private()
54+
->tag('cache.pool')
55+
5156
->set('security.authenticator.firewall_aware_login_link_handler', FirewallAwareLoginLinkHandler::class)
5257
->args([
5358
service('security.firewall.map'),

0 commit comments

Comments
 (0)