瀏覽代碼

Add prefer-stable docs

Jordi Boggiano 12 年之前
父節點
當前提交
a112231c55
共有 1 個文件被更改,包括 7 次插入0 次删除
  1. 7 0
      doc/04-schema.md

+ 7 - 0
doc/04-schema.md

@@ -493,6 +493,13 @@ a given package can be done in `require` or `require-dev` (see
 Available options (in order of stability) are `dev`, `alpha`, `beta`, `RC`,
 and `stable`.
 
+### prefer-stable <span>(root-only)</span>
+
+When this is enabled, Composer will prefer more stable packages over unstable
+ones when finding compatible stable packages is possible. If you require a
+dev version or only alphas are available for a package, those will still be
+selected granted that the minimum-stability allows for it.
+
 ### repositories <span>(root-only)</span>
 
 Custom package repositories to use.