Example #1
0
 /**
  * @param \Symfony\Component\OptionsResolver\OptionsResolver $resolver
  */
 public function configureOptions(OptionsResolver $resolver)
 {
     parent::configureOptions($resolver);
     $resolver->setRequired(array('mappings'))->setAllowedTypes('mappings', 'array');
 }
Example #2
0
 /**
  * @param \Symfony\Component\OptionsResolver\OptionsResolver $resolver
  */
 public function configureOptions(OptionsResolver $resolver)
 {
     parent::configureOptions($resolver);
     $resolver->setDefaults(array('format' => 'd/m/Y'));
 }
Example #3
0
 /**
  * @param \Symfony\Component\OptionsResolver\OptionsResolver $resolver
  */
 public function configureOptions(OptionsResolver $resolver)
 {
     parent::configureOptions($resolver);
     $resolver->setDefaults(array('true_label' => null, 'false_label' => null))->setAllowedTypes('true_label', array('null', 'string'))->setAllowedTypes('false_label', array('null', 'string'));
 }
Example #4
0
 /**
  * @param OptionsResolver $resolver
  */
 public function configureOptions(OptionsResolver $resolver)
 {
     parent::configureOptions($resolver);
     $resolver->setDefined(array('truncate'));
 }