protected static $patterns =
[];
/**
* @return void
*/
public function buildForm(FormBuilderInterface
$builder, array
$options) { // Values used in HTML5 number inputs should be formatted as in "1234.5", ie. 'en' format without grouping,
// according to https://www.w3.org/TR/html51/sec-forms.html#date-time-and-number-formats
$builder ->
addViewTransformer(new MoneyToLocalizedStringTransformer( $options['scale'
],
$options['grouping'
],
$options['rounding_mode'
],
$options['divisor'
],
$options['html5'
] ? 'en' : null
)) ;
} /**
* @return void
*/