瀏覽代碼

Merge pull request #5775 from tomasfejfar/docs/repository-object-format

Clarify allowed format for repositories key
Jordi Boggiano 9 年之前
父節點
當前提交
33cbe6195e
共有 1 個文件被更改,包括 14 次插入0 次删除
  1. 14 0
      doc/04-schema.md

+ 14 - 0
doc/04-schema.md

@@ -775,6 +775,20 @@ will look from the first to the last repository, and pick the first match.
 By default Packagist is added last which means that custom repositories can
 By default Packagist is added last which means that custom repositories can
 override packages from it.
 override packages from it.
 
 
+Using JSON object notation is also possible. However, JSON key/value pairs
+are to be considered unordered so consistent behaviour cannot be guaranteed.
+
+ ```json
+{
+    "repositories": {
+         "foo": {
+             "type": "composer",
+             "url": "http://packages.foo.com"
+         }
+    }
+}
+ ```
+
 ### config <span>([root-only](04-schema.md#root-package))</span>
 ### config <span>([root-only](04-schema.md#root-package))</span>
 
 
 A set of configuration options. It is only used for projects. See
 A set of configuration options. It is only used for projects. See