1
0
Fork 0

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

Clarify allowed format for repositories key
pull/5779/head
Jordi Boggiano 2016-10-10 14:45:49 +02:00 committed by GitHub
commit 33cbe6195e
1 changed files with 14 additions and 0 deletions

View File

@ -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
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>
A set of configuration options. It is only used for projects. See