mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-24 08:33:49 +00:00
Good Center - Circle suggested
This commit is contained in:
@@ -4,10 +4,10 @@ namespace Chill\EventBundle\Controller;
|
||||
|
||||
use Symfony\Component\HttpFoundation\Request;
|
||||
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
|
||||
|
||||
use Chill\EventBundle\Entity\Event;
|
||||
use Chill\EventBundle\Form\EventType;
|
||||
|
||||
|
||||
/**
|
||||
* Event controller.
|
||||
*
|
||||
@@ -62,9 +62,9 @@ class EventController extends Controller
|
||||
*/
|
||||
private function createCreateForm(Event $entity)
|
||||
{
|
||||
$form = $this->createForm(new EventType(), $entity, array(
|
||||
$form = $this->createForm(EventType::class, $entity, array(
|
||||
'action' => $this->generateUrl('event_create'),
|
||||
'method' => 'POST',
|
||||
'method' => 'POST'
|
||||
));
|
||||
|
||||
$form->add('submit', 'submit', array('label' => 'Create'));
|
||||
|
Reference in New Issue
Block a user