10000 [Form] Replace [append|prepend][Norm|Client]Transformer methods with add[Norm|Client]Transformer · Issue #3855 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content
[Form] Replace [append|prepend][Norm|Client]Transformer methods with add[Norm|Client]Transformer #3855
Closed
@webmozart

Description

@webmozart

The following methods should be renamed:

  • FormBuilder::prependNormTransformer → addNormTransformer
  • FormBuilder::appendClientTransformer → addClientTransformer

The methods appendNormTransformer and prependClientTransformer should be removed. These assume that the normalized format can be changed. In reality, the normalized format is chosen by the creator of a type and should not be modified in order to keep the type working correctly.

This change simplifies the Form API and reduces WTF's arising when appendNormTransformer or prependClientTransformer are used.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0