deprecated the --xml option for commands
This commit is contained in:
parent
0542a17b5b
commit
c4bf217e66
@ -77,6 +77,8 @@ EOF
|
||||
}
|
||||
|
||||
if ($input->getOption('xml')) {
|
||||
trigger_error('The --xml option was deprecated in version 2.7 and will be removed in version 3.0. Use the --format option instead.', E_USER_DEPRECATED);
|
||||
|
||||
$input->setOption('format', 'xml');
|
||||
}
|
||||
|
||||
|
@ -69,6 +69,8 @@ EOF
|
||||
protected function execute(InputInterface $input, OutputInterface $output)
|
||||
{
|
||||
if ($input->getOption('xml')) {
|
||||
trigger_error('The --xml option was deprecated in version 2.7 and will be removed in version 3.0. Use the --format option instead.', E_USER_DEPRECATED);
|
||||
|
||||
$input->setOption('format', 'xml');
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user