Skip to content

Commit

Permalink
Fixed a FormTypeExtensionInterface deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
javiereguiluz committed Nov 28, 2018
1 parent 28e18dd commit cde62cd
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/Form/Extension/EasyAdminExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,15 @@ public function getExtendedType()
{
return LegacyFormHelper::getType('form');
}

/**
* {@inheritdoc}
*/
public static function getExtendedTypes()
{
// needed to avoid a deprecation when using Symfony 4.2
return array(LegacyFormHelper::getType('form'));
}
}

class_alias('EasyCorp\Bundle\EasyAdminBundle\Form\Extension\EasyAdminExtension', 'JavierEguiluz\Bundle\EasyAdminBundle\Form\Extension\EasyAdminExtension', false);

0 comments on commit cde62cd

Please sign in to comment.