fix new events page depreciations

This commit is contained in:
Tchama 2018-12-20 11:36:39 +01:00
parent 49aeb075a4
commit 9f168a3a3c
2 changed files with 3 additions and 5 deletions

View File

@ -68,7 +68,7 @@ class EventController extends Controller
'method' => 'POST'
));
$form->add('submit', 'submit', array('label' => 'Create'));
$form->add('submit', SubmitType::class, array('label' => 'Create'));
return $form;
}

View File

@ -3,6 +3,7 @@
namespace Chill\EventBundle\Form;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\Extension\Core\Type\DateType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolverInterface;
use Chill\EventBundle\Form\Type\PickEventType;
@ -68,10 +69,7 @@ class EventType extends AbstractType
$builder
->add('name')
->add(
'date',
'date',
array(
->add('date', DateType::class, array(
'required' => true,
'widget' => 'single_text',
'format' => 'dd-MM-yyyy'