Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion routing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2002,7 +2002,8 @@ avoids the need for duplicating routes, which also reduces the potential bugs:
{
#[Route(path: [
'en' => '/about-us',
'nl' => '/over-ons'
'nl' => '/over-ons',
'/about-us' // Default path for undefined locales
Copy link
Contributor

@MrYamous MrYamous Sep 13, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is that available only with attribute ? I think we should keep equivalent examples for attribute/yaml/xml/php if possible

], name: 'about_us')]
public function about(): Response
{
Expand Down
Loading