Skip to content

Symfony FormTrait: should check instanceof instead of name #184

@caudurieau

Description

@caudurieau

In the Symfony FormTrait instead of checking the classname to determinate if the class is a form, we should check if it implements the Symfony\Component\Form\FormTypeInterface.

Because there are no rules that impose to name forms with the word "Type" at the end of classnames. So you may name your forms for example with the word "Form" at the end of classnames.

Source:

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