-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Document fluent route changes. #5019
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Include the old behavior in comments.
ravage84
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good job! Just minor stuff as far as I skimmed through.
en/development/routing.rst
Outdated
|
|
||
| // Set the matching patterns for route elements | ||
| ->setPatterns([ | ||
| 'slug' => '[a-z0-9-_]+' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
comma
en/development/routing.rst
Outdated
| // Set the matching patterns for route elements | ||
| ->setPatterns([ | ||
| 'slug' => '[a-z0-9-_]+' | ||
| 'lang' => 'en|fr|es' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
comma
en/development/routing.rst
Outdated
| // will simply map ":id" to $articleId in your action | ||
| 'pass' => ['id', 'slug'], | ||
| // Define a pattern that `id` must match. | ||
| 'id' => '[0-9]+' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
comma
en/development/routing.rst
Outdated
| ); | ||
|
|
||
| // Match multiple verbs | ||
| // Prior to 3.5 use $options[_method] to set method |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
$options['_method'] ?
|
Thanks @ravage84 |
|
Thanks! |
Update the documentation for the new fluent methods on Route. I've also broken the new features section up by package as it was becoming a wall of un-scanable text.
I've tried to follow the latest decisions on documenting the most recent version, and including previous version compatibility in follow up examples or in comments.