Skip to content

Commit

Permalink
Use getLocale method
Browse files Browse the repository at this point in the history
  • Loading branch information
pingiun committed May 19, 2024
1 parent bb8b075 commit 9727ec1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Controller/SupportMemberController.php
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ public function handleRedirect(Request $request, string $customerId): Response
}

$retryUrl = $this->generateUrl('support_member_retry', [
'customerId' => $customerId, '_locale' => $request->locale
'customerId' => $customerId, '_locale' => $request->getLocale()
]);

return $this->render('user/support_member/failed.html.twig', [
Expand Down Expand Up @@ -153,7 +153,7 @@ public function retryPayment(Request $request, string $customerId, TranslatorInt
if ($supportMembershipApplication === null)
{
return $this->redirectToRoute('support_member_redirect', [
'customerId' => $customerId, '_locale' => $request->locale
'customerId' => $customerId, '_locale' => $request->getLocale()
]);
}
else
Expand Down Expand Up @@ -228,10 +228,10 @@ public function webhook(Request $request, MailerInterface $mailer, TranslatorInt
->to(new Address($supportMember->getEmail(), $supportMember->getFirstName() .' '. $supportMember->getLastName()))
->from(new Address($noReplyMail, 'ROOD, Socialistische Jongeren'))
->html(
$this->renderView($templatePrefix . 'email/html/welcome_support-' . $request->locale . '.html.twig', ['supportMember' => $supportMember])
$this->renderView($templatePrefix . 'email/html/welcome_support-' . $request->getLocale() . '.html.twig', ['supportMember' => $supportMember])
)
->text(
$this->renderView($templatePrefix . 'email/text/welcome_support-' . $request->locale . '.txt.twig', ['supportMember' => $supportMember])
$this->renderView($templatePrefix . 'email/text/welcome_support-' . $request->getLocale() . '.txt.twig', ['supportMember' => $supportMember])
);
$mailer->send($message);

Expand Down

0 comments on commit 9727ec1

Please sign in to comment.