Add implementation of FormTypeExtensionInterface::getExtendedTypes (#1453)

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

Fixes #1448
This commit is contained in:
Dmitriy Simushev 2019-01-25 20:25:46 +03:00 committed by Guilhem N
parent 7a5c8a2e0d
commit 1b104bbf74

View File

@ -34,6 +34,11 @@ class DocumentationExtension extends AbstractTypeExtension
public function getExtendedType()
{
return FormType::class;
return self::getExtendedTypes()[0];
}
public static function getExtendedTypes()
{
return [FormType::class];
}
}