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; }