Kaynağa Gözat

* work on no-auth-cache 'creation'

till 13 yıl önce
ebeveyn
işleme
a8287118ed
1 değiştirilmiş dosya ile 12 ekleme ve 1 silme
  1. 12 1
      src/Composer/Repository/Vcs/SvnDriver.php

+ 12 - 1
src/Composer/Repository/Vcs/SvnDriver.php

@@ -218,6 +218,16 @@ class SvnDriver extends VcsDriver implements VcsDriverInterface
         return $this->branches;
     }
 
+    /**
+     * Return the no-auth-cache switch.
+     *
+     * @return string
+     */
+    public function getSvnAuthCache()
+    {
+        return '--no-auth-cache ';
+    }
+
     /**
      * A method to create the svn commands run.
      *
@@ -254,9 +264,10 @@ class SvnDriver extends VcsDriver implements VcsDriverInterface
         if ($this->useAuth !== true) {
             return '';
         }
-        $str = ' --no-auth-cache --username %s --password %s ';
+        $str = ' %s--username %s --password %s ';
         return sprintf(
             $str,
+            $this->getSvnAuthCache(),
             escapeshellarg($this->svnUsername),
             escapeshellarg($this->svnPassword)
         );