-
Notifications
You must be signed in to change notification settings - Fork 2.6k
adjust cake 6.0 upgrade to current upgrade tooling rectors #8221
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
base: 6.x
Are you sure you want to change the base?
Conversation
docs/en/development/routing.md
Outdated
| $routes->scope('/api', function (RouteBuilder $routes) { | ||
| $routes->resources('Articles', function (RouteBuilder $routes) { | ||
| $routes->resources('Comments', ['prefix' => 'Articles']); | ||
| $routes->resources('Comments', options: ['prefix' => 'Articles']); |
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.
Should we always recommend named params for route building methods or only in certain situations?
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.
Always using named params in e.g. code keeps things consistent and more readable.
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.
does this mean we should also add named params for 1st and 2nd param calls on all RouteBuilder calls in the docs?
docs/en/development/routing.md
Outdated
| $routes->scope('/api', function (RouteBuilder $routes) { | ||
| $routes->resources('Articles', function (RouteBuilder $routes) { | ||
| $routes->resources('Comments', ['prefix' => 'Articles']); | ||
| $routes->resources('Comments', options: ['prefix' => 'Articles']); |
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.
Always using named params in e.g. code keeps things consistent and more readable.
|
@ADmad this what you had in mind? |
Co-authored-by: ADmad <admad.coder@gmail.com>
f5086be to
3d03290
Compare
Don't like the use of named arg for the 1st argument :) Sorry for not being clear earlier, I meant to use them for 2nd/3rd args because of the swapping of the args done in 6.x. Your changes do highlight an inconsistency though. For
|
Closes #8188