Mercurial > hg > isophonics-drupal-site
comparison vendor/consolidation/annotated-command/src/Options/AutomaticOptionsProviderInterface.php @ 0:4c8ae668cc8c
Initial import (non-working)
author | Chris Cannam |
---|---|
date | Wed, 29 Nov 2017 16:09:58 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:4c8ae668cc8c |
---|---|
1 <?php | |
2 namespace Consolidation\AnnotatedCommand\Options; | |
3 | |
4 use Consolidation\AnnotatedCommand\Parser\CommandInfo; | |
5 use Symfony\Component\Console\Input\InputOption; | |
6 | |
7 /** | |
8 * Option providers can add options to commands based on the annotations | |
9 * present in a command. For example, a command that specifies @fields | |
10 * will automatically be given --format and --fields options. | |
11 * | |
12 * @see AnnotatedCommandFactory::addListener() | |
13 * @see HookManager::addOptionHook() | |
14 */ | |
15 interface AutomaticOptionsProviderInterface | |
16 { | |
17 /** | |
18 * @return InputOption[] | |
19 */ | |
20 public function automaticOptions(CommandInfo $commandInfo); | |
21 } |