/**
  * {@inheritdoc}
  */
 public function configureOptions(OptionsResolver $resolver)
 {
     parent::configureOptions($resolver);
     $resolver->setDefault('validation_groups', function (FormInterface $form) {
         if (!empty($form->get('password')->getData())) {
             return ['profile', 'profile_password'];
         }
         return ['profile'];
     });
 }
 /**
  * {@inheritdoc}
  */
 public function configureOptions(OptionsResolver $resolver)
 {
     parent::configureOptions($resolver);
     $resolver->setDefault('validation_groups', Configuration::TYPE_PASSWORD_RESET);
 }
 /**
  * {@inheritdoc}
  */
 public function configureOptions(OptionsResolver $resolver)
 {
     parent::configureOptions($resolver);
     $resolver->setDefault('validation_groups', Configuration::TYPE_REGISTRATION);
 }
 /**
  * {@inheritdoc}
  */
 public function configureOptions(OptionsResolver $resolver)
 {
     parent::configureOptions($resolver);
     $resolver->setDefault('validation_groups', Configuration::TYPE_CONFIRMATION);
     $resolver->setDefault('csrf_protection', false);
 }