factorize PickRoleType, PickStatusType and rename TranslatableEventType

This commit is contained in:
2016-04-19 15:30:44 +02:00
parent 78c53fe7b0
commit cf4a0d9e75
8 changed files with 326 additions and 56 deletions

View File

@@ -5,7 +5,7 @@ namespace Chill\EventBundle\Form;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolverInterface;
use Chill\EventBundle\Form\Type\TranslatableEventType;
use Chill\EventBundle\Form\Type\PickEventType;
use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface;
use Chill\MainBundle\Security\Authorization\AuthorizationHelper;
use Doctrine\Common\Persistence\ObjectManager;
@@ -107,7 +107,7 @@ class EventType extends AbstractType
);
},
))
->add('type', TranslatableEventType::class)
->add('type', PickEventType::class)
;
}