mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-12 13:24:25 +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;
|
namespace Chill\MainBundle\Form\Type;
|
||||||
|
|
||||||
use Symfony\Component\Form\AbstractType;
|
use Symfony\Component\Form\AbstractType;
|
||||||
use Symfony\Component\OptionsResolver\OptionsResolverInterface;
|
use Symfony\Component\OptionsResolver\OptionsResolver;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Extends choice to allow adding select2 library on widget
|
* Extends choice to allow adding select2 library on widget
|
||||||
@ -40,7 +40,7 @@ class Select2EntityType extends AbstractType
|
|||||||
return 'entity';
|
return 'entity';
|
||||||
}
|
}
|
||||||
|
|
||||||
public function setDefaultOptions(OptionsResolverInterface $resolver)
|
public function configureOptions(OptionsResolver $resolver)
|
||||||
{
|
{
|
||||||
$resolver->replaceDefaults(
|
$resolver->replaceDefaults(
|
||||||
array('attr' => array('class' => 'select2 '))
|
array('attr' => array('class' => 'select2 '))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user