You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The <info>%command.name%</info> command dumps the current configuration for an
@@ -98,14 +97,14 @@ protected function execute(InputInterface $input, OutputInterface $output): int
98
97
99
98
$format = $input->getOption('format');
100
99
101
-
if ('yaml' === $format && !class_exists(Yaml::class)) {
102
-
$errorIo->error('Setting the "format" option to "yaml" requires the Symfony Yaml component. Try running "composer install symfony/yaml" or use "--format=json" instead.');
100
+
if (\in_array($format, ['txt', 'yml'], true) && !class_exists(Yaml::class)) {
101
+
$errorIo->error('Setting the "format" option to "txt" or "yaml" requires the Symfony Yaml component. Try running "composer install symfony/yaml" or use "--format=json" instead.');
103
102
104
103
return1;
105
104
}
106
105
107
106
if (null === $path = $input->getArgument('path')) {
108
-
if (!$input->getOption('no-title')) {
107
+
if ('txt' === $input->getOption('format')) {
109
108
$io->title(
110
109
sprintf('Current configuration for %s', $name === $extensionAlias ? sprintf('extension with alias "%s"', $extensionAlias) : sprintf('"%s"', $name))
111
110
);
@@ -134,7 +133,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
0 commit comments