Skip to content

[SecurityBundle] Set translator in AccessTokenAuthenticator in Security bundle config #54734

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prev Previous commit
lint: trigger_deprecation params on one line
  • Loading branch information
dwgebler authored Jun 10, 2024
commit e3b1981e38183a0eb9dd00d7cb970d261490ad47
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,7 @@ public function onAuthenticationFailure(Request $request, AuthenticationExceptio
if (null !== $this->translator) {
$errorMessage = $this->translator->trans($exception->getMessageKey(), $exception->getMessageData(), 'security');
if (preg_match('/[^\x00-\x7F]/', $errorMessage)) {
trigger_deprecation(
'symfony/security-http',
'6.4',
'Using non-ASCII characters in the error message is deprecated. Use ASCII characters only.'
);
trigger_deprecation('symfony/security-http', '6.4', 'Using non-ASCII characters in the error message is deprecated. Use ASCII characters only.');
}
} else {
$errorMessage = strtr($exception->getMessageKey(), $exception->getMessageData());
Expand Down
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy