8000 minor #41134 [Security] Translation count argument for TooManyLoginAt… · symfony/security-core@942b40f · GitHub
[go: up one dir, main page]

Skip to content

Commit 942b40f

Browse files
committed
minor #41134 [Security] Translation count argument for TooManyLoginAttemptsAuthenticationException (rmikalkenas)
This PR was merged into the 5.2 branch. Discussion ---------- [Security] Translation count argument for TooManyLoginAttemptsAuthenticationException | Q | A | ------------- | --- | Branch? | 5.2 | Bug fix? | no | New feature? | no | Deprecations? | no | License | MIT Added `%count%` argument to leverage translator's pluralization functionality as discussed in symfony/symfony#41097 Commits ------- 2bf0b485f9 Provide count argument for TooManyLoginAttemptsAuthenticationException to be able to translate in plural way
2 parents f885ecd + b540b11 commit 942b40f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Exception/TooManyLoginAttemptsAuthenticationException.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ public function getMessageData(): array
3333
{
3434
return [
3535
'%minutes%' => $this->threshold,
36+
'%count%' => (int) $this->threshold,
3637
];
3738
}
3839

0 commit comments

Comments
 (0)
0