Skip to content

Commit

Permalink
minor #41134 [Security] Translation count argument for TooManyLoginAt…
Browse files Browse the repository at this point in the history
…temptsAuthenticationException (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
  • Loading branch information
wouterj committed May 9, 2021
2 parents f885ecd + b540b11 commit 942b40f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Exception/TooManyLoginAttemptsAuthenticationException.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ public function getMessageData(): array
{
return [
'%minutes%' => $this->threshold,
'%count%' => (int) $this->threshold,
];
}

Expand Down

0 comments on commit 942b40f

Please sign in to comment.