Skip to content

Commit

Permalink
Remove deprecations
Browse files Browse the repository at this point in the history
  • Loading branch information
core23 committed Dec 29, 2021
1 parent 5174e26 commit fb98727
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/Mailer/SimpleRegistrationMailer.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,9 @@ public function __construct(
*/
public function sendConfirmationEmailMessage(UserInterface $user): void
{
$url = $this->router->generate(
'nucleos_profile_registration_confirm',
['token' => $user->getConfirmationToken()],
UrlGeneratorInterface::ABSOLUTE_URL
);
$url = $this->router->generate('nucleos_profile_registration_confirm', [
'token' => $user->getConfirmationToken(),
], UrlGeneratorInterface::ABSOLUTE_URL);

$mail = (new RegistrationMail())
->to(new Address($user->getEmail()))
Expand All @@ -62,7 +60,7 @@ public function sendConfirmationEmailMessage(UserInterface $user): void
;

if (null !== $this->fromEmail) {
$mail->from(Address::fromString($this->fromEmail));
$mail->from(new Address($this->fromEmail));
}

$this->mailer->send($mail);
Expand Down

0 comments on commit fb98727

Please sign in to comment.