You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
string "validators" translation domain should respect the Translator translationDomain witch can be modified through configuration (validator.translation_domain: my_custom_validation_translation_domain).
See in Translation\Extractor\Visitor\Php\Symfony\ValidationAnnotation
/** * @param array $constraints */privatefunctionextractFromConstraints(array$constraints)
{
foreach ($constraintsas$constraint) {
$ref = new \ReflectionClass($constraint);
$defaultValues = $ref->getDefaultProperties();
$properties = $ref->getProperties();
foreach ($propertiesas$property) {
$propName = $property->getName();
// If the property ends with 'Message'if ('message' === strtolower(substr($propName, -1 * strlen('Message')))) {
// If it is different from the default valueif ($defaultValues[$propName] !== $constraint->{$propName}) {
$this->addLocation($constraint->{$propName}, 0, null, ['domain' => 'validators']);
}
}
}
}
}
Not sure of the best way to do this, any idea ?
The text was updated successfully, but these errors were encountered:
string "validators" translation domain should respect the Translator translationDomain witch can be modified through configuration (validator.translation_domain: my_custom_validation_translation_domain).
See in Translation\Extractor\Visitor\Php\Symfony\ValidationAnnotation
Not sure of the best way to do this, any idea ?
The text was updated successfully, but these errors were encountered: