'\d+'])] public function verify(int $id, string $hmac, EntityManagerInterface $em): Response { $attestation = $em->getRepository(AttestationCustom::class)->find($id); $valid = null !== $attestation && hash_equals($attestation->getHmac(), $hmac); return $this->render('attestation_custom/verify.html.twig', [ 'valid' => $valid, 'attestation' => $valid ? $attestation : null, ]); } }