mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
make the form compliant with sf 3.0
This commit is contained in:
parent
7679786288
commit
a9e04e56be
@ -21,7 +21,7 @@
|
||||
namespace Chill\MainBundle\Form\Type;
|
||||
|
||||
use Symfony\Component\Form\AbstractType;
|
||||
use Symfony\Component\OptionsResolver\OptionsResolverInterface;
|
||||
use Symfony\Component\OptionsResolver\OptionsResolver;
|
||||
|
||||
/**
|
||||
* Extends choice to allow adding select2 library on widget
|
||||
@ -40,7 +40,7 @@ class Select2EntityType extends AbstractType
|
||||
return 'entity';
|
||||
}
|
||||
|
||||
public function setDefaultOptions(OptionsResolverInterface $resolver)
|
||||
public function configureOptions(OptionsResolver $resolver)
|
||||
{
|
||||
$resolver->replaceDefaults(
|
||||
array('attr' => array('class' => 'select2 '))
|
||||
|
Loading…
x
Reference in New Issue
Block a user