Warning: Undefined variable $namespace in /home/wordpri/www/cci/amar/Projet-v1 2 apache/vendor/symfony/maker-bundle/src/Resources/skeleton/verifyEmail/EmailVerifier.tpl.php on line 3
;
Warning: Undefined variable $use_statements in /home/wordpri/www/cci/amar/Projet-v1 2 apache/vendor/symfony/maker-bundle/src/Resources/skeleton/verifyEmail/EmailVerifier.tpl.php on line 5
class
Warning: Undefined variable $class_name in /home/wordpri/www/cci/amar/Projet-v1 2 apache/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,
Warning: Undefined variable $user_class_name in /home/wordpri/www/cci/amar/Projet-v1 2 apache/vendor/symfony/maker-bundle/src/Resources/skeleton/verifyEmail/EmailVerifier.tpl.php on line 16
$user, TemplatedEmail $email): void
{
$signatureComponents = $this->verifyEmailHelper->generateSignature(
$verifyEmailRouteName,
(string) $user->
Warning: Undefined variable $id_getter in /home/wordpri/www/cci/amar/Projet-v1 2 apache/vendor/symfony/maker-bundle/src/Resources/skeleton/verifyEmail/EmailVerifier.tpl.php on line 20
(),
Warning: Undefined variable $verify_email_anonymously in /home/wordpri/www/cci/amar/Projet-v1 2 apache/vendor/symfony/maker-bundle/src/Resources/skeleton/verifyEmail/EmailVerifier.tpl.php on line 21
$user->
Warning: Undefined variable $email_getter in /home/wordpri/www/cci/amar/Projet-v1 2 apache/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,
Warning: Undefined variable $user_class_name in /home/wordpri/www/cci/amar/Projet-v1 2 apache/vendor/symfony/maker-bundle/src/Resources/skeleton/verifyEmail/EmailVerifier.tpl.php on line 42
$user): void
{
$this->verifyEmailHelper->validateEmailConfirmationFromRequest($request, (string) $user->
Warning: Undefined variable $id_getter in /home/wordpri/www/cci/amar/Projet-v1 2 apache/vendor/symfony/maker-bundle/src/Resources/skeleton/verifyEmail/EmailVerifier.tpl.php on line 44
(), $user->
Warning: Undefined variable $email_getter in /home/wordpri/www/cci/amar/Projet-v1 2 apache/vendor/symfony/maker-bundle/src/Resources/skeleton/verifyEmail/EmailVerifier.tpl.php on line 44
());
$user->setVerified(true);
$this->entityManager->persist($user);
$this->entityManager->flush();
}
}