Skip to content

Commit 1a7fbd6

Browse files
committed
v3.1
1 parent f940a89 commit 1a7fbd6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Validation/ConstraintViolation/ValidatorConstraintViolationAdapter.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ final class ValidatorConstraintViolationAdapter implements RouterConstraintViola
2626
{
2727
public function __construct(
2828
private readonly ValidatorConstraintViolationInterface $validatorConstraintViolation,
29+
private readonly ?string $translationDomain = null,
2930
) {
3031
}
3132

@@ -75,6 +76,6 @@ private static function adaptPropertyPath(string $propertyPath): string
7576

7677
public function getTranslationDomain(): string
7778
{
78-
return TranslationDomain::VALIDATOR;
79+
return $this->translationDomain ?? TranslationDomain::VALIDATOR;
7980
}
8081
}

0 commit comments

Comments
 (0)