Clarify that route defaults doesn't need a route placeholder #3960
Labels
DX
good first issue
Ideal for your first contribution! (some Symfony experience may be required)
Routing
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.The text was updated successfully, but these errors were encountered: