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