5 * Contains \Drupal\Console\Core\Command\AboutCommand.
8 namespace Drupal\Console\Core\Command;
10 use Symfony\Component\Console\Input\InputInterface;
11 use Symfony\Component\Console\Output\OutputInterface;
16 * @package Drupal\Console\Core\Command
18 class AboutCommand extends Command
24 protected function configure()
28 ->setDescription($this->trans('commands.about.description'));
34 protected function execute(InputInterface $input, OutputInterface $output)
36 $application = $this->getApplication();
38 $aboutTitle = sprintf(
40 $application->getName(),
41 $application->getVersion()
44 $this->getIo()->setDecorated(false);
45 $this->getIo()->title($aboutTitle);
46 $this->getIo()->setDecorated(true);
50 $this->trans('commands.init.description'),
54 $this->trans('commands.common.messages.quick-start'),
58 $this->trans('commands.site.new.description'),
62 $this->trans('commands.site.install.description'),
68 $this->trans('commands.list.description'),
73 foreach ($commands as $command => $commandInfo) {
74 $this->getIo()->writeln($commandInfo[0]);
75 $this->getIo()->comment(sprintf(' %s', $commandInfo[1]));
76 $this->getIo()->newLine();
79 $this->getIo()->writeln($this->trans('commands.self-update.description'));
80 $this->getIo()->comment(' drupal self-update');
81 $this->getIo()->newLine();