Skip to content

Commit

Permalink
minor #2446 Fixed a FormTypeExtensionInterface deprecation (javieregu…
Browse files Browse the repository at this point in the history
…iluz)

This PR was squashed before being merged into the 1.x branch (closes #2446).

Discussion
----------

Fixed a FormTypeExtensionInterface deprecation

This fixes #2445 thanks to the proposal made by @yceruto and reviewed by @xabbuh. Thanks!

Commits
-------

cde62cd Fixed a FormTypeExtensionInterface deprecation
  • Loading branch information
javiereguiluz committed Nov 28, 2018
2 parents 61c01b5 + cde62cd commit 55ad965
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/Form/Extension/EasyAdminExtension.php
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 55ad965

Please sign in to comment.