X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=vendor%2Fdrupal%2Fconsole-core%2Fsrc%2FCommand%2FDebug%2FSettingsCommand.php;fp=vendor%2Fdrupal%2Fconsole-core%2Fsrc%2FCommand%2FDebug%2FSettingsCommand.php;h=224bd63f5742c0ca4883f6b54a91b2bb56fb7df4;hp=0000000000000000000000000000000000000000;hb=9917807b03b64faf00f6a1f29dcb6eafc454efa5;hpb=aea91e65e895364e460983b890e295aa5d5540a5 diff --git a/vendor/drupal/console-core/src/Command/Debug/SettingsCommand.php b/vendor/drupal/console-core/src/Command/Debug/SettingsCommand.php new file mode 100644 index 000000000..224bd63f5 --- /dev/null +++ b/vendor/drupal/console-core/src/Command/Debug/SettingsCommand.php @@ -0,0 +1,68 @@ +configurationManager = $configurationManager; + parent::__construct(); + } + + /** + * {@inheritdoc} + */ + protected function configure() + { + $this + ->setName('debug:settings') + ->setDescription($this->trans('commands.debug.settings.description')) + ->setAliases(['dse']); + ; + } + + /** + * {@inheritdoc} + */ + protected function execute(InputInterface $input, OutputInterface $output) + { + $configuration = $this->configurationManager->getConfiguration(); + $configApplication['application'] = $configuration->getRaw('application'); + + unset($configApplication['application']['autowire']); + unset($configApplication['application']['languages']); + + $this->getIo()->write(Yaml::dump($configApplication, 6, 2)); + $this->getIo()->newLine(); + + return 0; + } +}