1
0
Fork 0

Switch to QuestionHelper

pull/3983/head
Rob Bast 2015-04-30 12:20:32 +02:00
parent 00fcd63c04
commit 3dae4cd517
1 changed files with 1 additions and 2 deletions

View File

@ -74,9 +74,8 @@ EOT
$json->removeLink($type, $package);
} elseif (isset($composer[$altType][$package])) {
$this->getIO()->writeError('<warning>'.$package.' could not be found in '.$type.' but it is present in '.$altType.'</warning>');
$dialog = $this->getHelperSet()->get('dialog');
if ($this->getIO()->isInteractive()) {
if ($dialog->askConfirmation($output, $dialog->getQuestion('Do you want to remove it from '.$altType, 'yes', '?'), true)) {
if ($this->getIO()->askConfirmation('Do you want to remove it from '.$altType.' [<comment>yes</comment>]?', true)) {
$json->removeLink($altType, $package);
}
}