/** * @return OptionsResolver */ public function getConfigurableOptions() { $resolver = parent::getConfigurableOptions(); $resolver->setDefaults(array('detect_key_conflicts' => false)); $resolver->addAllowedTypes('detect_key_conflicts', array('bool')); return $resolver; }
/** * @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; }
/** * @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; }
/** * @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; }