From 2e6ac1187cdf708e0c72dd11575149207af21f00 Mon Sep 17 00:00:00 2001 From: Mohammad Emran Hasan Date: Tue, 28 Jan 2020 08:26:33 +0600 Subject: [PATCH] Updated imports in TaskController when using TaskType --- forms.rst | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/forms.rst b/forms.rst index 1bd561c022b..54ab2d5ac79 100644 --- a/forms.rst +++ b/forms.rst @@ -262,10 +262,8 @@ to build another object with the visual representation of the form:: namespace App\Controller; use App\Entity\Task; + use App\Form\Type\TaskType; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; - use Symfony\Component\Form\Extension\Core\Type\DateType; - use Symfony\Component\Form\Extension\Core\Type\SubmitType; - use Symfony\Component\Form\Extension\Core\Type\TextType; use Symfony\Component\HttpFoundation\Request; class TaskController extends AbstractController