Explorar el Código

Config option 'prefer-source' added to schema, refs #553

Miklós Márton hace 12 años
padre
commit
c92c69b10e
Se han modificado 2 ficheros con 6 adiciones y 0 borrados
  1. 2 0
      doc/04-schema.md
  2. 4 0
      res/composer-schema.json

+ 2 - 0
doc/04-schema.md

@@ -581,6 +581,8 @@ The following options are supported:
   higher if you have a slow connection or huge vendors.
 * **use-include-path:** Defaults to `false`. If true, the Composer autoloader
   will also look for classes in the PHP include path.
+* **prefer-source:** Defaults to `false`. If true, Composer will always prefer
+  source installs.
 * **github-protocols:** Defaults to `["git", "https", "http"]`. A list of
   protocols to use for github.com clones, in priority order. Use this if you are
   behind a proxy or have somehow bad performances with the git protocol.

+ 4 - 0
res/composer-schema.json

@@ -116,6 +116,10 @@
                     "type": "boolean",
                     "description": "If true, the Composer autoloader will also look for classes in the PHP include path."
                 },
+                "prefer-source": {
+                    "type": "boolean",
+                    "description": "If true, Composer will always prefer source installs."
+                },
                 "notify-on-install": {
                     "type": "boolean",
                     "description": "Composer allows repositories to define a notification URL, so that they get notified whenever a package from that repository is installed. This option allows you to disable that behaviour, defaults to true."