azazqadir azazqadir - 2 months ago
291 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.
Source: https://www.cloudways.com/blog/upgrade-symfony-2-to-3/

PHP

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)
       ->getForm();
Comments