Эх сурвалжийг харах

Merge pull request #402 from igorw/packagist-false-docs

[docs] move docs on disabling packagist to repositories chapter
Jordi Boggiano 13 жил өмнө
parent
commit
c27bdad728
2 өөрчлөгдсөн 13 нэмэгдсэн , 11 устгасан
  1. 0 11
      doc/04-schema.md
  2. 13 0
      doc/05-repositories.md

+ 0 - 11
doc/04-schema.md

@@ -288,17 +288,6 @@ Example:
 precedence. This also means that custom repositories can override packages
 that exist on packagist.
 
-You can also disable the packagist repository by setting `packagist` to
-`false`.
-
-    {
-        "repositories": [
-            {
-                "packagist": false
-            }
-        ]
-    }
-
 ## config
 
 A set of configuration options. It is only used for projects.

+ 13 - 0
doc/05-repositories.md

@@ -249,3 +249,16 @@ package repository definitions. It will fetch all the packages that are
 
 Check [the satis GitHub repository](https://github.com/composer/satis) for more
 information.
+
+## Disabling packagist
+
+You can disable the default packagist repository by adding this to your
+`composer.json`:
+
+    {
+        "repositories": [
+            {
+                "packagist": false
+            }
+        ]
+    }