浏览代码

renamed cache-credentials to svn-cache-credentials

Bastian Hofmann 10 年之前
父节点
当前提交
f8023cffdf
共有 2 个文件被更改,包括 4 次插入4 次删除
  1. 2 2
      doc/05-repositories.md
  2. 2 2
      src/Composer/Repository/Vcs/SvnDriver.php

+ 2 - 2
doc/05-repositories.md

@@ -362,7 +362,7 @@ http-basic section of your config (See [Schema](04-schema.md)):
 If your Subversion client is configured to store credentials by default these
 If your Subversion client is configured to store credentials by default these
 credentials will be saved for the current user and existing saved credentials
 credentials will be saved for the current user and existing saved credentials
 for this server will be overwritten. To change this behavior by setting the
 for this server will be overwritten. To change this behavior by setting the
-`"cache-credentials"` option in your repository configuration:
+`"svn-cache-credentials"` option in your repository configuration:
 
 
 ```json
 ```json
 {
 {
@@ -370,7 +370,7 @@ for this server will be overwritten. To change this behavior by setting the
         {
         {
             "type": "vcs",
             "type": "vcs",
             "url": "http://svn.example.org/projectA/",
             "url": "http://svn.example.org/projectA/",
-            "cache-credentials": false
+            "svn-cache-credentials": false
         }
         }
     ]
     ]
 }
 }

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

@@ -67,8 +67,8 @@ class SvnDriver extends VcsDriver
         if (isset($this->repoConfig['tags-path'])) {
         if (isset($this->repoConfig['tags-path'])) {
             $this->tagsPath = $this->repoConfig['tags-path'];
             $this->tagsPath = $this->repoConfig['tags-path'];
         }
         }
-        if (array_key_exists('cache-credentials', $this->repoConfig)) {
-            $this->cacheCredentials = (bool) $this->repoConfig['cache-credentials'];
+        if (array_key_exists('svn-cache-credentials', $this->repoConfig)) {
+            $this->cacheCredentials = (bool) $this->repoConfig['svn-cache-credentials'];
         }
         }
         if (isset($this->repoConfig['package-path'])) {
         if (isset($this->repoConfig['package-path'])) {
             $this->packagePath = '/' . trim($this->repoConfig['package-path'], '/');
             $this->packagePath = '/' . trim($this->repoConfig['package-path'], '/');