Browse Source

Example of disabling packagist.org globally

Obviously this is not a common use case, but it is good for isolated networks. As far as I could tell, this was not documented, but I figured it out by looking through the code.
Michael King 7 năm trước cách đây
mục cha
commit
e7d2682204
1 tập tin đã thay đổi với 6 bổ sung0 xóa
  1. 6 0
      doc/05-repositories.md

+ 6 - 0
doc/05-repositories.md

@@ -655,4 +655,10 @@ You can disable the default Packagist.org repository by adding this to your
 }
 ```
 
+You can disable Packagist.org globally by using the global config flag:
+
+```
+composer confg -g repo.packagist false
+```
+
 ← [Schema](04-schema.md)  |  [Config](06-config.md) →