umpirsky / Symfony-Upgrade-Fixer

Analyzes your Symfony project and tries to make it compatible with the new version of Symfony framework.
MIT License
275 stars 18 forks source link

[2.8] FormExtensionFixer #29

Closed althaus closed 7 years ago

althaus commented 8 years ago

Hey,

another one very similar to the FormTypeFixer. Upgrading form type extensions:

Before:

class MyTypeExtension extends AbstractTypeExtension
{
   public function getExtendedType()
   {
       return 'form';
   }
}

After:

use Symfony\Component\Form\Extension\Core\Type\FormType;

class MyTypeExtension extends AbstractTypeExtension
{
   public function getExtendedType()
   {
       return FormType::class;
   }
}

Cheers Matthias

umpirsky commented 8 years ago

Nice one, thanks. :+1: