Skip to content

[DX] Improve route requirements definition: allow to define requirements inline with placeholders itself #26481

Closed
@Strate

Description

@Strate
Q A
Bug report? no
Feature request? yes
BC Break report? no
RFC? yes
Symfony version 4.x

It would be great to inline requirements to pattern itself:
/route/path/{parameter:\d+} instead of /route/path/{parameter}, requirements={{parameter: "\d+"}}

Metadata

Metadata

Assignees

No one assigned

    Labels

    DXDX = Developer eXperience (anything that improves the experience of using Symfony)FeatureRouting

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions