Warning: Undefined variable $namespace in /home/ldt/public_html/canvas/udoit/vendor/symfony/maker-bundle/src/Resources/skeleton/verifyEmail/EmailVerifier.tpl.php on line 3
;
Warning: Undefined variable $use_statements in /home/ldt/public_html/canvas/udoit/vendor/symfony/maker-bundle/src/Resources/skeleton/verifyEmail/EmailVerifier.tpl.php on line 5
class
Warning: Undefined variable $class_name in /home/ldt/public_html/canvas/udoit/vendor/symfony/maker-bundle/src/Resources/skeleton/verifyEmail/EmailVerifier.tpl.php on line 7
{
public function __construct(
private VerifyEmailHelperInterface $verifyEmailHelper,
private MailerInterface $mailer,
private EntityManagerInterface $entityManager
) {
}
public function sendEmailConfirmation(string $verifyEmailRouteName, UserInterface $user, TemplatedEmail $email): void
{
$signatureComponents = $this->verifyEmailHelper->generateSignature(
$verifyEmailRouteName,
$user->
Warning: Undefined variable $id_getter in /home/ldt/public_html/canvas/udoit/vendor/symfony/maker-bundle/src/Resources/skeleton/verifyEmail/EmailVerifier.tpl.php on line 20
(),
Warning: Undefined variable $verify_email_anonymously in /home/ldt/public_html/canvas/udoit/vendor/symfony/maker-bundle/src/Resources/skeleton/verifyEmail/EmailVerifier.tpl.php on line 21
$user->
Warning: Undefined variable $email_getter in /home/ldt/public_html/canvas/udoit/vendor/symfony/maker-bundle/src/Resources/skeleton/verifyEmail/EmailVerifier.tpl.php on line 25
()
);
$context = $email->getContext();
$context['signedUrl'] = $signatureComponents->getSignedUrl();
$context['expiresAtMessageKey'] = $signatureComponents->getExpirationMessageKey();
$context['expiresAtMessageData'] = $signatureComponents->getExpirationMessageData();
$email->context($context);
$this->mailer->send($email);
}
/**
* @throws VerifyEmailExceptionInterface
*/
public function handleEmailConfirmation(Request $request, UserInterface $user): void
{
$this->verifyEmailHelper->validateEmailConfirmation($request->getUri(), $user->
Warning: Undefined variable $id_getter in /home/ldt/public_html/canvas/udoit/vendor/symfony/maker-bundle/src/Resources/skeleton/verifyEmail/EmailVerifier.tpl.php on line 44
(), $user->
Warning: Undefined variable $email_getter in /home/ldt/public_html/canvas/udoit/vendor/symfony/maker-bundle/src/Resources/skeleton/verifyEmail/EmailVerifier.tpl.php on line 44
());
$user->setIsVerified(true);
$this->entityManager->persist($user);
$this->entityManager->flush();
}
}