mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-03 13:33:48 +00:00
fix deprecation: no more passing of type instances
This commit is contained in:
@@ -25,9 +25,11 @@ namespace Chill\ActivityBundle\Controller;
|
||||
use Symfony\Component\HttpFoundation\Request;
|
||||
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
|
||||
use Symfony\Component\Form\Extension\Core\Type\SubmitType;
|
||||
use Chill\ActivityBundle\Entity\Activity;
|
||||
use Symfony\Component\Security\Core\Role\Role;
|
||||
|
||||
use Chill\ActivityBundle\Entity\Activity;
|
||||
use Chill\PersonBundle\Entity\Person;
|
||||
use Chill\ActivityBundle\Form\ActivityType;
|
||||
|
||||
/**
|
||||
* Activity controller.
|
||||
@@ -130,7 +132,7 @@ class ActivityController extends Controller
|
||||
*/
|
||||
private function createCreateForm(Activity $entity)
|
||||
{
|
||||
$form = $this->createForm('chill_activitybundle_activity', $entity,
|
||||
$form = $this->createForm(ActivityType::class, $entity,
|
||||
array(
|
||||
'action' => $this->generateUrl('chill_activity_activity_create', [
|
||||
'person_id' => $entity->getPerson()->getId(),
|
||||
@@ -250,7 +252,7 @@ class ActivityController extends Controller
|
||||
*/
|
||||
private function createEditForm(Activity $entity)
|
||||
{
|
||||
$form = $this->createForm('chill_activitybundle_activity', $entity, array(
|
||||
$form = $this->createForm(ActivityType::class, $entity, array(
|
||||
'action' => $this->generateUrl('chill_activity_activity_update',
|
||||
array(
|
||||
'id' => $entity->getId(),
|
||||
|
Reference in New Issue
Block a user