Added the Search API Synonym module to deal specifically with licence and license...
[yaffs-website] / vendor / drupal / console-core / src / Command / CompleteCommand.php
1 <?php
2
3 /**
4  * @file
5  * Contains \Drupal\Console\Core\CompleteCommand.
6  */
7
8 namespace Drupal\Console\Core\Command;
9
10 use Symfony\Component\Console\Input\InputInterface;
11 use Symfony\Component\Console\Output\OutputInterface;
12
13 class CompleteCommand extends Command
14 {
15     /**
16      * {@inheritdoc}
17      */
18     protected function configure()
19     {
20         $this
21             ->setName('complete')
22             ->setDescription($this->trans('commands.complete.description'));
23     }
24
25     /**
26      * {@inheritdoc}
27      */
28     protected function execute(InputInterface $input, OutputInterface $output)
29     {
30         $commands = array_keys($this->getApplication()->all());
31         asort($commands);
32         $output->writeln($commands);
33
34         return 0;
35     }
36 }