Yaffs site version 1.1
[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 Symfony\Component\Console\Command\Command;
10 use Drupal\Console\Core\Command\Shared\CommandTrait;
11
12 /**
13  * Class ShellCommand
14  *
15  * @package Drupal\Console\Command
16  */
17 class ShellCommand extends Command
18 {
19     use CommandTrait;
20
21     /**
22      * {@inheritdoc}
23      */
24     protected function configure()
25     {
26         $this
27             ->setName('shell')
28             ->setDescription($this->trans('commands.shell.description'))
29             ->setHelp($this->trans('commands.shell.help'));
30     }
31
32     /**
33      * {@inheritdoc}
34      */
35     protected function execute(InputInterface $input, OutputInterface $output)
36     {
37         $config = new Configuration;
38         $shell = new Shell($config);
39         $shell->run();
40     }
41 }