fix deprecations: setDefaultOptions -> configureOptions

This commit is contained in:
nobohan
2018-04-04 17:03:32 +02:00
parent 71a375b37d
commit be6d3493ed
6 changed files with 18 additions and 22 deletions

View File

@@ -4,7 +4,7 @@ namespace Chill\PersonBundle\Form;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolverInterface;
use Symfony\Component\OptionsResolver\OptionsResolver;
use Symfony\Component\Form\FormEvents;
use Symfony\Component\Form\FormEvent;
use Symfony\Component\Form\FormView;
@@ -59,9 +59,9 @@ class AccompanyingPeriodType extends AbstractType
}
/**
* @param OptionsResolverInterface $resolver
* @param OptionsResolver $resolver
*/
public function setDefaultOptions(OptionsResolverInterface $resolver)
public function configureOptions(OptionsResolver $resolver)
{
$resolver->setDefaults(array(
'data_class' => 'Chill\PersonBundle\Entity\AccompanyingPeriod'