5 * Contains \Drupal\Console\Core\Command\Debug\SettingsCommand.
8 namespace Drupal\Console\Core\Command\Debug;
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;
17 * Class SettingsCommand
19 * @package Drupal\Console\Core\Command\Settings
21 class SettingsCommand extends Command
24 * @var ConfigurationManager
26 protected $configurationManager;
29 * CheckCommand constructor.
31 * @param ConfigurationManager $configurationManager
33 public function __construct(
34 ConfigurationManager $configurationManager
36 $this->configurationManager = $configurationManager;
37 parent::__construct();
43 protected function configure()
46 ->setName('debug:settings')
47 ->setDescription($this->trans('commands.debug.settings.description'))
48 ->setAliases(['dse']);
55 protected function execute(InputInterface $input, OutputInterface $output)
57 $configuration = $this->configurationManager->getConfiguration();
58 $configApplication['application'] = $configuration->getRaw('application');
60 unset($configApplication['application']['autowire']);
61 unset($configApplication['application']['languages']);
63 $this->getIo()->write(Yaml::dump($configApplication, 6, 2));
64 $this->getIo()->newLine();