Skip to content

New best-practice for Symfony Forms #5077

Closed
@javiereguiluz

Description

@javiereguiluz

In #5076 we've reworded an important note as follows:

The ``getName()`` method returns the identifier of this form "type". These
identifiers must be unique in the application. Unless you want to override
a built-in type, they should be different from the default Symfony types
and from any type defined by a third-party bundle installed in you application.
Consider prefixing your types with ``app_`` to avoid identifier collisions.

Should we make the app_ prefix recommendation a formal best practice?

Metadata

Metadata

Assignees

No one assigned

    Labels

    actionableClear and specific issues ready for anyone to take them.good first issueIdeal for your first contribution! (some Symfony experience may be required)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions