<?phpnamespace App\Validator;use Symfony\Component\Validator\Constraint;/** * @Annotation */class UniqueUserEmail extends Constraint{ /* * Any public properties become valid options for the annotation. * Then, use these in your validator class. */ public bool $checkAgainstLoggedInUser = false; public function getDefaultOption(): string { return 'checkAgainstLoggedInUser'; } public string $message = 'L\'adresse email "{{ value }}" existe déjà.';}