From a1e1a8c7d73664891ff09d806e04cbcff2261276 Mon Sep 17 00:00:00 2001 From: till Date: Mon, 12 Mar 2012 17:28:13 +0100 Subject: [PATCH] * use askConfirmation() instead --- src/Composer/Repository/Vcs/SvnDriver.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/Composer/Repository/Vcs/SvnDriver.php b/src/Composer/Repository/Vcs/SvnDriver.php index 8ded8702b..330eaeeb5 100644 --- a/src/Composer/Repository/Vcs/SvnDriver.php +++ b/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; }