소스 검색

* use askConfirmation() instead

till 13 년 전
부모
커밋
a1e1a8c7d7
1개의 변경된 파일2개의 추가작업 그리고 4개의 파일을 삭제
  1. 2 4
      src/Composer/Repository/Vcs/SvnDriver.php

+ 2 - 4
src/Composer/Repository/Vcs/SvnDriver.php

@@ -96,10 +96,8 @@ class SvnDriver extends VcsDriver implements VcsDriverInterface
                 $this->svnPassword = $this->io->askAndHideAnswer("Password");
                 $this->useAuth     = true;
 
-                static $cacheTrueAnswers = array('yes', 'y', 'true', 'ja', 'si', 'da');
-
-                $cacheAnswer = strtolower(trim($this->io->ask("Should Subversion cache these credentials?", 'no')));
-                if (in_array($cacheAnswer, $cacheTrueAnswers)) {
+                $pleaseCache = $this->io->askConfirmation("Should Subversion cache these credentials?", false);
+                if ($pleaseCache === true) {
                     $this->useCache = true;
                 }