Skip to content

Clarify that route defaults doesn't need a route placeholder #3960

Closed
@wouterj

Description

@wouterj

Let's move some feedback given in the DX issues to the docs.

In symfony/symfony#11171 , it was made clear that people don't get clear where defaults can be used for. The documentation makes it look like it's only used to have default values for route placeholders. It turns out, you can use it for a lot more things (it's an array of route specific settings). One common used example is the _controller default.

I would suggest to add a small paragraph (or a .. sidebar:: or .. tip::) about the other uses of the defaults and how you can retrieve them from the route attributes of a route.

Metadata

Metadata

Assignees

No one assigned

    Labels

    DXRoutinggood 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