[Form] Guess currency field based on validator constraint
This commit is contained in:
parent
47d001e821
commit
2993b0092e
@ -118,6 +118,9 @@ class ValidatorTypeGuesser implements FormTypeGuesserInterface
|
||||
case 'Symfony\Component\Validator\Constraints\Country':
|
||||
return new TypeGuess('country', array(), Guess::HIGH_CONFIDENCE);
|
||||
|
||||
case 'Symfony\Component\Validator\Constraints\Currency':
|
||||
return new TypeGuess('currency', array(), Guess::HIGH_CONFIDENCE);
|
||||
|
||||
case 'Symfony\Component\Validator\Constraints\Date':
|
||||
return new TypeGuess('date', array('input' => 'string'), Guess::HIGH_CONFIDENCE);
|
||||
|
||||
|
Reference in New Issue
Block a user