adjust cake 6.0 upgrade to current upgrade tooling rectors#8221
Open
adjust cake 6.0 upgrade to current upgrade tooling rectors#8221
Conversation
LordSimal
commented
Feb 7, 2026
| simple Hello world command. In your application's **src/Command** directory create | ||
| **HelloCommand.php**. Put the following code inside it: | ||
|
|
||
| ``` php |
Contributor
Author
There was a problem hiding this comment.
@josbeir is there maybe a markdown linting rule which enforces no space here?
My Editor - PHPStorm - does not recognise the code style otherwise. Or is this a bug in PHPStorm? 😁
LordSimal
commented
Feb 7, 2026
| $routes->scope('/api', function (RouteBuilder $routes) { | ||
| $routes->resources('Articles', function (RouteBuilder $routes) { | ||
| $routes->resources('Comments', ['prefix' => 'Articles']); | ||
| $routes->resources('Comments', options: ['prefix' => 'Articles']); |
Contributor
Author
There was a problem hiding this comment.
Should we always recommend named params for route building methods or only in certain situations?
Member
There was a problem hiding this comment.
Always using named params in e.g. code keeps things consistent and more readable.
Contributor
Author
There was a problem hiding this comment.
does this mean we should also add named params for 1st and 2nd param calls on all RouteBuilder calls in the docs?
ADmad
reviewed
Feb 7, 2026
| $routes->scope('/api', function (RouteBuilder $routes) { | ||
| $routes->resources('Articles', function (RouteBuilder $routes) { | ||
| $routes->resources('Comments', ['prefix' => 'Articles']); | ||
| $routes->resources('Comments', options: ['prefix' => 'Articles']); |
Member
There was a problem hiding this comment.
Always using named params in e.g. code keeps things consistent and more readable.
Co-authored-by: ADmad <admad.coder@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #8188