From 16b05d29e5ed644baf6b47d515bb0e1d92837a33 Mon Sep 17 00:00:00 2001 From: nobohan Date: Tue, 3 Apr 2018 11:32:26 +0200 Subject: [PATCH] fix deprecation : use fqcn for submit --- Controller/ScopeController.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Controller/ScopeController.php b/Controller/ScopeController.php index 6e71d6876..df5bfce19 100644 --- a/Controller/ScopeController.php +++ b/Controller/ScopeController.php @@ -7,6 +7,7 @@ use Symfony\Bundle\FrameworkBundle\Controller\Controller; use Chill\MainBundle\Entity\Scope; use Chill\MainBundle\Form\ScopeType; +use Symfony\Component\Form\Extension\Core\Type\SubmitType; /** * Scope controller. @@ -67,7 +68,7 @@ class ScopeController extends Controller 'method' => 'POST', )); - $form->add('submit', 'submit', array('label' => 'Create')); + $form->add('submit', SubmitType::class, array('label' => 'Create')); return $form; }