Browse Source

Switch to QuestionHelper

Rob Bast 10 years ago
parent
commit
3dae4cd517
1 changed files with 1 additions and 2 deletions
  1. 1 2
      src/Composer/Command/RemoveCommand.php

+ 1 - 2
src/Composer/Command/RemoveCommand.php

@@ -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);
                     }
                 }