public function setDefaultOptions(OptionsResolverInterface $resolver) { $resolver->setDefaults(array('allow_extra_fields' => true)); }