Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature #20029 Hide commands from ApplicationDescriptor, but allow in…
…voking (jwdeitch, Jordan Deitch) This PR was merged into the 3.2-dev branch. Discussion ---------- Hide commands from ApplicationDescriptor, but allow invoking I would like to hide commands from cluttering the descriptors, but still allow their invocation from code or cron. | Q | A | ------------- | --- | Branch? | master | Bug fix? | no | New feature? | yes | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | comma-separated list of tickets fixed by the PR, if any | License | MIT | Doc PR | reference to the documentation PR, if any Commits ------- 746dab3 casting setPublic() arg to bool 0a3c290 update docblocks and added test 6d87837 Update ApplicationDescription.php e969581 update hidden to public 3efa874 Update Command.php dfc1ac8 Update Command.php cd77139 Update Command.php 56a8b93 Update Command.php fb1f30c Update Command.php 1993196 Update Command.php 1add2ad Update Command.php b73f494 Update ApplicationDescription.php 8d0262f Update Command.php b423ab4 Add hidden field
- Loading branch information
Showing
4 changed files
with
50 additions
and
1 deletion.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
27 changes: 27 additions & 0 deletions
27
src/Symfony/Component/Console/Tests/Fixtures/DescriptorCommand3.php
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<?php | ||
|
||
/* | ||
* This file is part of the Symfony package. | ||
* | ||
* (c) Fabien Potencier <fabien@symfony.com> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
|
||
namespace Symfony\Component\Console\Tests\Fixtures; | ||
|
||
use Symfony\Component\Console\Command\Command; | ||
|
||
class DescriptorCommand3 extends Command | ||
{ | ||
protected function configure() | ||
{ | ||
$this | ||
->setName('descriptor:command3') | ||
->setDescription('command 3 description') | ||
->setHelp('command 3 help') | ||
->setPublic(false) | ||
; | ||
} | ||
} |