8000 Hide commands from ApplicationDescriptor, but allow invoking by jwdeitch · Pull Request #20029 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content
Prev Previous commit
Next Next commit
Update Command.php
  • Loading branch information
jwdeitch authored Sep 22, 2016
commit 1add2ad12088453c57cc47d5d59c86ef8509ef8e
5 changes: 3 additions & 2 deletions src/Symfony/Component/Console/Command/Command.php
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,7 @@ public function getName()
return $this->name;
}

/**
/**
* Sets if the command should be hidden from application inspection.
*
* @param bool $hiddenBool To show this command or not
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Derp.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What about To hide the command in application descriptions.

Expand All @@ -457,13 +457,14 @@ public function getName()
public function setHidden($hiddenBool)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be $hidden

Copy link
Contributor 8000 Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

indeed. Thank you sir

{
$this->hidden = $hiddenBool;

return $this;
}

/**
* Returns if the command should be hidden from application inspection.
*
* @return boolean If the command is hidden or not
* @return bool If the command is hidden or not
*/
public function isHidden()
{
Expand Down
0