Skip to content

Commit

Permalink
[debug-settings] Remove config file(s) list. (#271)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmolivas committed Jan 8, 2018
1 parent 7ac3f2b commit 39c66a7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 11 deletions.
1 change: 1 addition & 0 deletions src/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -608,6 +608,7 @@ public function getData()
'about',
'chain',
'check',
'composerize',
'exec',
'help',
'init',
Expand Down
14 changes: 3 additions & 11 deletions src/Command/Debug/SettingsCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,19 +60,11 @@ protected function execute(InputInterface $input, OutputInterface $output)
$configuration = $this->configurationManager->getConfiguration();
$configApplication['application'] = $configuration->getRaw('application');

$io->write(Yaml::dump($configApplication, 6, 2));
unset($configApplication['application']['autowire']);
unset($configApplication['application']['languages']);

$io->write(Yaml::dump($configApplication, 6, 2));
$io->newLine();
$io->info($this->trans('commands.debug.settings.messages.config-file'));

$configurationFiles = [];
foreach ($this->configurationManager->getConfigurationFiles() as $key => $configurationFile) {
$configurationFiles = array_merge(
$configurationFiles,
$configurationFile
);
}
$io->listing($configurationFiles);

return 0;
}
Expand Down
1 change: 1 addition & 0 deletions src/Descriptor/TextDescriptor.php
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,7 @@ protected function describeApplication(Application $application, array $options
'about',
'chain',
'check',
'composerize',
'exec',
'help',
'init',
Expand Down

0 comments on commit 39c66a7

Please sign in to comment.