-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Add console hook documentation. #5088
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
Add brief documentation on the console() hook. I plan on adding a more holistic section for the application class. Just not sure where to put it just yet. Refs cakephp/cakephp#10716
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.
Looks good. Thanks
| hook that allows them to have full control over which CLI commands are exposed, | ||
| how they are named and how the shells get their dependencies. Adopting this new | ||
| class requires replacing the contents of your ``bin/cake.php`` file with the | ||
| `following file <https://github.com/cakephp/app/tree/3.next/bin/cake.php>`_. |
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.
This link would get outdated. Why not set the future one in place already?
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.
If I use the future link now. It will be broken until the release.
| { | ||
| public function console($commands) | ||
| { | ||
| // Add by classname |
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.
What ar the impllications of both ways? Which do we recommend and why?
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.
I find classnames simpler. But DI fans might like to build console commands from a container which lends itself to instances more.
Add brief documentation on the console() hook. I plan on adding a more holistic section for the application class. Just not sure where to put it just yet.
Refs cakephp/cakephp#10716