diff --git a/src/Dto/DateRange b/src/Dto/DateRange new file mode 100644 index 0000000..e04d326 --- /dev/null +++ b/src/Dto/DateRange @@ -0,0 +1,9 @@ +add('start', DateType::class, [ + 'label' => 'From', + 'widget' => 'single_text', + 'required' => false, + ]) + ->add('end', DateType::class, [ + 'label' => 'To', + 'widget' => 'single_text', + 'required' => false, + ]) + ; + } + + public function configureOptions(OptionsResolver $resolver): void + { + $resolver->setDefaults([ + 'data_class' => DateRange::class, + ]); + } +}