Skip to content

[Form] Cannot submit form with custom HTTP method #26287

Closed
@alekitto

Description

@alekitto
Q A
Bug report? no
Feature request? yes
BC Break report? no
RFC? no
Symfony version 4.0.4

While the routing component correctly handles custom HTTP methods, the form component disallow configuring a form with a method which is not GET, PUT, POST, DELETE, PATCH.
When trying to create an action with a custom HTTP method, FormConfigBuilder::setMethod throws an InvalidArgumentException.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions