azazqadir azazqadir - 1 year ago
576 0

In this article, I will discuss how to upgrade from Symfony 2.7 to Symfony 2.8 and then to Symfony 3.x. An upgrade to version 2.8 is called a minor update while upgrading to version 3.x is called a major update. Version 3.x comes with a whole new directory structure that also change the location of several key files and components.


How To Upgrade From Symfony 2.X To 3.X

use Symfony\Component\Form\Extension\Core\Type\IntegerType;
   use Symfony\Component\Form\Extension\Core\Type\TextType;
   $form = $this->createFormBuilder()
       ->add('name', TextType::class)
       ->add('age', IntegerType::class)