0
我有以下composer.json
文件:如何覆蓋由packagist.org上託管的composer.json定義的必需版本?
{
"require": {
"guzzlehttp/guzzle": "^5.3"
},
"require-dev": {
"aeris/guzzle-http-mock": ">=1.1.5"
}
}
,我想迫使aeris/guzzle-http-mock
package使用不同版本的guzzlehttp/guzzle
(如5.3.1
),但它似乎要求讀取來自composer.json
文件託管在packagist.org。是否有任何解決方法來覆蓋這些要求?
所以不是:
"guzzlehttp/guzzle": "~5.0.0"
我想設置:
"guzzlehttp/guzzle": "^5.3"
只改變我的地方
composer.json
文件
理想。
目前該命令將顯示衝突錯誤:
$ composer install --prefer-source -vvv
Reading ./composer.json
Loading config file ./composer.json
...
Reading ~/.composer/cache/repo/https---packagist.org/provider-aeris$guzzle-http-mock.json from cache
Resolving dependencies through SAT
Dependency resolution completed in 0.000 seconds
Reading ~/.composer/cache/repo/https---packagist.org/provider-guzzlehttp$guzzle.json from cache
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Installation request for aeris/guzzle-http-mock >=1.1.5 -> satisfiable by aeris/guzzle-http-mock[1.1.5].
- aeris/guzzle-http-mock 1.1.5 requires guzzlehttp/guzzle ~5.0.0 -> satisfiable by guzzlehttp/guzzle[5.0.0, 5.0.1, 5.0.2, 5.0.3] but these conflict with your requirements or minimum-stability.