could not load type submit symfony 3
<p>I'm a newbie on Symfony and I have some problems with the 3thd version.  I created a formType with the console called userType.  Everything is ok but I can't add a submit button.  The old way <code>-&gt;add('save','submit')</code> is not working and I think it's about the version of symfony.  So, here is my code :</p>

<p><div class="snippet" data-lang="js" data-hide="false">
<div class="snippet-code">
<pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;?php

namespace MyBundle\UserBundle\Form;

use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolver;

class userType extends AbstractType
{
    /**
     * @param FormBuilderInterface $builder
     * @param array $options
     */
    public function buildForm(FormBuilderInterface $builder, array $options)
    {

        $builder
            -&gt;add('name')
            -&gt;add('nickname')
            //-&gt;add('dateOfBirth', 'date')
            -&gt;add('sex')
            -&gt;add('country')
            -&gt;add('city')
            -&gt;add('email')
            -&gt;add('password')
            -&gt;add('save', SubmitType::class, array('label' =&gt; 'Create Task')); //here is the problem
    }

    /**
     * @param OptionsResolver $resolver
     */
    public function configureOptions(OptionsResolver $resolver)
    {
        $resolver-&gt;setDefaults(array(
            'data_class' =&gt; 'MyBundle\UserBundle\Entity\user'
        ));
    }
}</code></pre>
</div>
</div>
</p>

<p>Have you got an idea about how to resolve that problem ?  Sorry if I'm posting in the wron section :-).</p>

<p>Thank's for having read me,</p>

<p>Axel </p>