Added the Search API Synonym module to deal specifically with licence and license...
[yaffs-website] / vendor / drupal / console-core / src / Command / Debug / SettingsCommand.php
1 <?php
2
3 /**
4  * @file
5  * Contains \Drupal\Console\Core\Command\Debug\SettingsCommand.
6  */
7
8 namespace Drupal\Console\Core\Command\Debug;
9
10 use Symfony\Component\Console\Input\InputInterface;
11 use Symfony\Component\Console\Output\OutputInterface;
12 use Drupal\Console\Core\Command\Command;
13 use Drupal\Console\Core\Utils\ConfigurationManager;
14 use Symfony\Component\Yaml\Yaml;
15
16 /**
17  * Class SettingsCommand
18  *
19  * @package Drupal\Console\Core\Command\Settings
20  */
21 class SettingsCommand extends Command
22 {
23     /**
24      * @var ConfigurationManager
25      */
26     protected $configurationManager;
27
28     /**
29      * CheckCommand constructor.
30      *
31      * @param ConfigurationManager $configurationManager
32      */
33     public function __construct(
34         ConfigurationManager $configurationManager
35     ) {
36         $this->configurationManager = $configurationManager;
37         parent::__construct();
38     }
39
40     /**
41      * {@inheritdoc}
42      */
43     protected function configure()
44     {
45         $this
46             ->setName('debug:settings')
47             ->setDescription($this->trans('commands.debug.settings.description'))
48             ->setAliases(['dse']);
49         ;
50     }
51
52     /**
53      * {@inheritdoc}
54      */
55     protected function execute(InputInterface $input, OutputInterface $output)
56     {
57         $configuration = $this->configurationManager->getConfiguration();
58         $configApplication['application'] = $configuration->getRaw('application');
59
60         unset($configApplication['application']['autowire']);
61         unset($configApplication['application']['languages']);
62
63         $this->getIo()->write(Yaml::dump($configApplication, 6, 2));
64         $this->getIo()->newLine();
65
66         return 0;
67     }
68 }