소스 검색

Switch to QuestionHelper

Rob Bast 10 년 전
부모
커밋
3dae4cd517
1개의 변경된 파일1개의 추가작업 그리고 2개의 파일을 삭제
  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);
                     }
                 }