allowedRoles)) { $this->context->buildViolation($constraint->message) ->setParameter('{{ value }}', $this->formatValue($role)) ->setCode(Role::ROLE_ERROR) ->addViolation(); } } } }