*/ final class ProjectInactiveForm extends AbstractType { public function buildForm(FormBuilderInterface $builder, array $options): void { $builder->add('lastChange', DatePickerType::class, [ 'label' => 'last_record_before', 'model_timezone' => $options['timezone'], 'view_timezone' => $options['timezone'], ]); } public function configureOptions(OptionsResolver $resolver): void { $resolver->setDefaults([ 'data_class' => ProjectInactiveQuery::class, 'timezone' => date_default_timezone_get(), 'csrf_protection' => false, 'method' => 'GET', ]); } }