Notice: Undefined variable: namespace in /home/developer/public_html/elnashra_old/vendor/symfony/maker-bundle/src/Resources/skeleton/verifyEmail/EmailVerifier.tpl.php on line 3
;
use Doctrine\ORM\EntityManagerInterface;
use Symfony\Bridge\Twig\Mime\TemplatedEmail;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\Mailer\MailerInterface;
use Symfony\Component\Security\Core\User\UserInterface;
use SymfonyCasts\Bundle\VerifyEmail\Exception\VerifyEmailExceptionInterface;
use SymfonyCasts\Bundle\VerifyEmail\VerifyEmailHelperInterface;
class
Notice: Undefined variable: class_name in /home/developer/public_html/elnashra_old/vendor/symfony/maker-bundle/src/Resources/skeleton/verifyEmail/EmailVerifier.tpl.php on line 13
{
private $verifyEmailHelper;
private $mailer;
private $entityManager;
public function __construct(VerifyEmailHelperInterface $helper, MailerInterface $mailer, EntityManagerInterface $manager)
{
$this->verifyEmailHelper = $helper;
$this->mailer = $mailer;
$this->entityManager = $manager;
}
public function sendEmailConfirmation(string $verifyEmailRouteName, UserInterface $user, TemplatedEmail $email): void
{
$signatureComponents = $this->verifyEmailHelper->generateSignature(
$verifyEmailRouteName,
$user->
Notice: Undefined variable: id_getter in /home/developer/public_html/elnashra_old/vendor/symfony/maker-bundle/src/Resources/skeleton/verifyEmail/EmailVerifier.tpl.php on line 30
(),
Notice: Undefined variable: verify_email_anonymously in /home/developer/public_html/elnashra_old/vendor/symfony/maker-bundle/src/Resources/skeleton/verifyEmail/EmailVerifier.tpl.php on line 31
$user->
Notice: Undefined variable: email_getter in /home/developer/public_html/elnashra_old/vendor/symfony/maker-bundle/src/Resources/skeleton/verifyEmail/EmailVerifier.tpl.php on line 35
()
);
$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->
Notice: Undefined variable: id_getter in /home/developer/public_html/elnashra_old/vendor/symfony/maker-bundle/src/Resources/skeleton/verifyEmail/EmailVerifier.tpl.php on line 54
(), $user->
Notice: Undefined variable: email_getter in /home/developer/public_html/elnashra_old/vendor/symfony/maker-bundle/src/Resources/skeleton/verifyEmail/EmailVerifier.tpl.php on line 54
());
$user->setIsVerified(true);
$this->entityManager->persist($user);
$this->entityManager->flush();
}
}