Skip to content

[SF] Visitor AbstractFormType should support FormTypeExtensions #191

Description

@mgiraud

This visitor checks that the file is a FormType using ‎FormTrait::isFormType.
A file is considered as FormType if it or any of its ancestor implement the FormTypeInterface.

However AbstractTypeExtensiontension implements FormTypeExtensionInterface and translation will never be extracted from such files.

Proposition : Consider files implemententing (or one of its ancestor) FormTypeExtensionInterface the same way as a FormType.
If this works this could a very simple fix here https://github.com/php-translation/extractor/blob/master/src/Visitor/Php/Symfony/FormTrait.php#L36

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions