Skip to content

Conversation

@markstory
Copy link
Member

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

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
Copy link
Member

@ravage84 ravage84 left a 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>`_.
Copy link
Member

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?

Copy link
Member Author

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
Copy link
Member

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?

Copy link
Member Author

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.

@markstory markstory merged commit 1172e92 into 3.next Jul 13, 2017
@markstory markstory deleted the command-runner branch July 13, 2017 01:30
HavokInspiration added a commit that referenced this pull request Jul 16, 2017
okinaka added a commit to okinaka/docs that referenced this pull request Jul 29, 2017
okinaka added a commit to okinaka/docs that referenced this pull request Jul 29, 2017
okinaka added a commit to okinaka/docs that referenced this pull request Jul 31, 2017
chinpei215 added a commit that referenced this pull request Jul 31, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants