1
0
Fork 0

Add gitlab-protocol to config command and schema

pull/9928/head
Jordi Boggiano 2021-06-01 16:05:53 +02:00
parent 9a5c5aec35
commit a23f8a3d6c
No known key found for this signature in database
GPG Key ID: 7BBD42C429EC80BC
2 changed files with 12 additions and 0 deletions

View File

@ -143,6 +143,10 @@
"type": "string" "type": "string"
} }
}, },
"gitlab-protocol": {
"enum": ["git", "http", "https"],
"description": "A protocol to force use of when creating a repository URL for the `source` value of the package metadata. One of `git` or `http`. By default, Composer will generate a git URL for private repositories and http one for public repos."
},
"bearer": { "bearer": {
"type": "object", "type": "object",
"description": "A hash of domain name => bearer authentication token, for example {\"example.com\":\"<token>\"}.", "description": "A hash of domain name => bearer authentication token, for example {\"example.com\":\"<token>\"}.",

View File

@ -330,6 +330,14 @@ EOT
return $val; return $val;
}, },
), ),
'gitlab-protocol' => array(
function ($val) {
return in_array($val, array('git', 'http', 'https'), true);
},
function ($val) {
return $val;
},
),
'store-auths' => array( 'store-auths' => array(
function ($val) { function ($val) {
return in_array($val, array('true', 'false', 'prompt'), true); return in_array($val, array('true', 'false', 'prompt'), true);