Security update for Core, with self-updated composer
[yaffs-website] / vendor / drupal / console / src / Command / ShellCommand.php
1 <?php
2
3 namespace Drupal\Console\Command;
4
5 use Psy\Shell;
6 use Psy\Configuration;
7 use Symfony\Component\Console\Input\InputInterface;
8 use Symfony\Component\Console\Output\OutputInterface;
9 use Drupal\Console\Core\Command\Command;
10
11 /**
12  * Class ShellCommand
13  *
14  * @package Drupal\Console\Command
15  */
16 class ShellCommand extends Command
17 {
18     /**
19      * {@inheritdoc}
20      */
21     protected function configure()
22     {
23         $this
24             ->setName('shell')
25             ->setDescription($this->trans('commands.shell.description'))
26             ->setHelp($this->trans('commands.shell.help'));
27     }
28
29     /**
30      * {@inheritdoc}
31      */
32     protected function execute(InputInterface $input, OutputInterface $output)
33     {
34         $config = new Configuration;
35         $shell = new Shell($config);
36         $shell->run();
37     }
38 }