10000 Updated the styles of the config parameters by javiereguiluz · Pull Request #15980 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

Updated the styles of the config parameters #15980

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
108EC Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Reverted some change to output valid YAML and XML contents
  • Loading branch information
javiereguiluz committed Oct 1, 2015
commit a8de671b44d41c40e2d532a5c14ba5769c55d513
Original file line number Diff line number Diff line change
Expand Up @@ -85,16 +85,18 @@ protected function execute(InputInterface $input, OutputInterface $output)
$this->validateConfiguration($extension, $configuration);

if ($name === $extension->getAlias()) {
$output->title(sprintf('Default configuration for extension with alias: "%s"', $name));
$message = sprintf('Default configuration for extension with alias: "%s"', $name);
} else {
$output->title(sprintf('Default configuration for "%s"', $name));
$message = sprintf('Default configuration for "%s"', $name);
}

switch ($input->getOption('format')) {
case 'yaml':
$output->writeln(sprintf('# %s', $message));
$dumper = new YamlReferenceDumper();
break;
case 'xml':
$output->writeln(sprintf('<!-- %s -->', $message));
$dumper = new XmlReferenceDumper();
break;
default:
Expand Down
0