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