getConfigurableOptions() public méthode

public getConfigurableOptions ( ) : Symfony\Component\OptionsResolver\OptionsResolver
Résultat Symfony\Component\OptionsResolver\OptionsResolver
Exemple #1
0
 /**
  * @return OptionsResolver
  */
 public function getConfigurableOptions()
 {
     $resolver = parent::getConfigurableOptions();
     $resolver->setDefaults(array('detect_key_conflicts' => false));
     $resolver->addAllowedTypes('detect_key_conflicts', array('bool'));
     return $resolver;
 }
Exemple #2
0
 /**
  * @return OptionsResolver
  */
 public function getConfigurableOptions()
 {
     $resolver = parent::getConfigurableOptions();
     $resolver->setDefaults(['object_support' => false, 'exception_on_invalid_type' => false]);
     $resolver->addAllowedTypes('object_support', ['bool']);
     $resolver->addAllowedTypes('exception_on_invalid_type', ['bool']);
     return $resolver;
 }
Exemple #3
0
 /**
  * @return OptionsResolver
  */
 public function getConfigurableOptions()
 {
     $resolver = parent::getConfigurableOptions();
     $resolver->setDefaults(array('load_from_net' => false, 'x_include' => false, 'dtd_validation' => false, 'scheme_validation' => false));
     $resolver->addAllowedTypes('load_from_net', array('bool'));
     $resolver->addAllowedTypes('x_include', array('bool'));
     $resolver->addAllowedTypes('dtd_validation', array('bool'));
     $resolver->addAllowedTypes('scheme_validation', array('bool'));
     return $resolver;
 }
Exemple #4
0
 /**
  * @return OptionsResolver
  */
 public function getConfigurableOptions()
 {
     $resolver = parent::getConfigurableOptions();
     $resolver->setDefaults(['load_from_net' => false, 'x_include' => false, 'dtd_validation' => false, 'scheme_validation' => false, 'triggered_by' => ['xml']]);
     $resolver->addAllowedTypes('load_from_net', ['bool']);
     $resolver->addAllowedTypes('x_include', ['bool']);
     $resolver->addAllowedTypes('dtd_validation', ['bool']);
     $resolver->addAllowedTypes('scheme_validation', ['bool']);
     $resolver->addAllowedTypes('triggered_by', ['array']);
     return $resolver;
 }