Skip to content

Commit

Permalink
Add implementation of FormTypeExtensionInterface::getExtendedTypes (#…
Browse files Browse the repository at this point in the history
…1453)

This method is wanted by symfony >= 4.2 and will be required for
symfony >= 5.0

Fixes #1448
  • Loading branch information
JustBlackBird authored and GuilhemN committed Jan 25, 2019
1 parent 7a5c8a2 commit 1b104bb
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Form/Extension/DocumentationExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@ public function configureOptions(OptionsResolver $resolver)

public function getExtendedType()
{
return FormType::class;
return self::getExtendedTypes()[0];
}

public static function getExtendedTypes()
{
return [FormType::class];
}
}

0 comments on commit 1b104bb

Please sign in to comment.