/**
  * {@inheritdoc}
  */
 public function setDefaultOptions(OptionsResolverInterface $resolver)
 {
     $resolver->setDefaults(array('data_class' => 'Barbon\\HostedApi\\AppBundle\\Form\\Reference\\Model\\ReferencingGuarantor', 'allow_extra_fields' => true, 'validation_groups' => function (FormInterface $form) {
         $validationGroup = new ReferencingApplicationValidationGroupSelector();
         return $validationGroup->chooseGroups($form);
     }, 'guarantor_decorator' => null));
     $resolver->setAllowedTypes(array('guarantor_decorator' => array('null', 'Barbon\\HostedApi\\AppBundle\\Form\\Reference\\EventListener\\ReferencingGuarantorDecoratorSubscriber')));
 }
 /**
  * {@inheritdoc}
  */
 public function setDefaultOptions(OptionsResolverInterface $resolver)
 {
     $resolver->setDefaults(array('data_class' => 'Barbon\\HostedApi\\AppBundle\\Form\\Reference\\Model\\ReferencingApplication', 'allow_extra_fields' => true, 'validation_groups' => function (FormInterface $form) {
         $validationGroup = new ReferencingApplicationValidationGroupSelector();
         return $validationGroup->chooseGroups($form);
     }));
 }