فهرست منبع

Changed the namespace for the options class used in form types to keep up with the 2.1 symfony master

Thanos Polymeneas 13 سال پیش
والد
کامیت
747b603d0a
2فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 1 1
      Form/Type/ModelType.php
  2. 1 1
      Form/Type/TranslatableChoiceType.php

+ 1 - 1
Form/Type/ModelType.php

@@ -18,7 +18,7 @@ use Symfony\Component\Form\FormFactoryInterface;
 use Symfony\Component\Form\AbstractType;
 use Symfony\Component\Form\FormInterface;
 use Symfony\Component\Form\FormView;
-use Symfony\Component\Form\Options;
+use Symfony\Component\OptionsResolver\Options;
 
 use Sonata\AdminBundle\Form\EventListener\MergeCollectionListener;
 use Sonata\AdminBundle\Form\ChoiceList\ModelChoiceList;

+ 1 - 1
Form/Type/TranslatableChoiceType.php

@@ -17,7 +17,7 @@ use Symfony\Component\Form\Extension\Core\Type\ChoiceType;
 use Symfony\Component\Form\FormInterface;
 use Symfony\Component\Form\FormView;
 use Symfony\Component\Form\FormBuilder;
-use Symfony\Component\Form\Options;
+use Symfony\Component\OptionsResolver\Options;
 
 class TranslatableChoiceType extends ChoiceType
 {