Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / vendor / consolidation / annotated-command / src / Options / AutomaticOptionsProviderInterface.php
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 }