X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=vendor%2Fdrupal%2Fconsole-core%2Fsrc%2FCommand%2FSettings%2FDebugCommand.php;fp=vendor%2Fdrupal%2Fconsole-core%2Fsrc%2FCommand%2FSettings%2FDebugCommand.php;h=0000000000000000000000000000000000000000;hp=ca35077f0b7325ccb64ba90cacc3d473643f5e16;hb=9917807b03b64faf00f6a1f29dcb6eafc454efa5;hpb=aea91e65e895364e460983b890e295aa5d5540a5 diff --git a/vendor/drupal/console-core/src/Command/Settings/DebugCommand.php b/vendor/drupal/console-core/src/Command/Settings/DebugCommand.php deleted file mode 100644 index ca35077f0..000000000 --- a/vendor/drupal/console-core/src/Command/Settings/DebugCommand.php +++ /dev/null @@ -1,123 +0,0 @@ -configurationManager = $configurationManager; - $this->nestedArray = $nestedArray; - parent::__construct(); - } - - /** - * {@inheritdoc} - */ - protected function configure() - { - $this - ->setName('settings:debug') - ->setDescription($this->trans('commands.settings.debug.description')); - } - - /** - * {@inheritdoc} - */ - protected function execute(InputInterface $input, OutputInterface $output) - { - $io = new DrupalStyle($input, $output); - - $configuration = $this->configurationManager->getConfiguration(); - $configApplication = $configuration->get('application'); - - unset($configApplication['autowire']); - unset($configApplication['languages']); - unset($configApplication['aliases']); - unset($configApplication['composer']); - unset($configApplication['default']['commands']); - - $configApplicationFlatten = []; - $keyFlatten = ''; - - $this->nestedArray->yamlFlattenArray( - $configApplication, - $configApplicationFlatten, - $keyFlatten - ); - - $tableHeader = [ - $this->trans('commands.settings.debug.messages.config-key'), - $this->trans('commands.settings.debug.messages.config-value'), - ]; - - $tableRows = []; - foreach ($configApplicationFlatten as $ymlKey => $ymlValue) { - $tableRows[] = [ - $ymlKey, - $ymlValue - ]; - } - - $io->newLine(); - $io->info( - sprintf( - '%s :', - $this->trans('commands.settings.debug.messages.config-file') - ), - false - ); - - $io->comment( - sprintf( - '%s/.console/config.yml', - $this->configurationManager->getHomeDirectory() - ), - true - ); - - $io->newLine(); - - $io->table($tableHeader, $tableRows, 'compact'); - - return 0; - } -}