Skip to content

Commit 6699928

Browse files
committed
bug symfony#21032 [SecurityBundle] Made collection of user provider unique when injecting them to the RemberMeService (lyrixx)
This PR was merged into the 2.7 branch. Discussion ---------- [SecurityBundle] Made collection of user provider unique when injecting them to the RemberMeService | Q | A | ------------- | --- | Branch? | 2.7 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | - | License | MIT | Doc PR | - Commits ------- 8227593 [SecurityBundle] Made collection of user provider unique when injecting them to the RemberMeService
2 parents 6faa8ab + 8227593 commit 6699928

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,8 @@ public function create(ContainerBuilder $container, $id, $config, $userProvider,
9696
if (count($userProviders) === 0) {
9797
throw new \RuntimeException('You must configure at least one remember-me aware listener (such as form-login) for each firewall that has remember-me enabled.');
9898
}
99-
$rememberMeServices->replaceArgument(0, $userProviders);
99+
100+
$rememberMeServices->replaceArgument(0, array_unique($userProviders));
100101

101102
// remember-me listener
102103
$listenerId = 'security.authentication.listener.rememberme.'.$id;

0 commit comments

Comments
 (0)