/**
* @throws \LogicException
*/
protected function execute(InputInterface
$input, OutputInterface
$output): int
{ $io =
new SymfonyStyle($input,
$output);
$errorIo =
$io->
getErrorStyle();
if (null ===
$name =
$input->
getArgument('name'
)) { $this->
listBundles($errorIo);
$this->
listNonBundleExtensions($errorIo);
$errorIo->
comment([ 'Provide the name of a bundle as the first argument of this command to dump its default configuration. (e.g. <comment>config:dump-reference FrameworkBundle</comment>)',
'For dumping a specific option, add its path as the second argument of this command. (e.g. <comment>config:dump-reference FrameworkBundle http_client.default_options</comment> to dump the <comment>framework.http_client.default_options</comment> configuration)',
]);
return 0;
} $extension =
$this->
findExtension($name);