我在版本1.0.3
中使用Apigility:
$ composer show -i
...
zfcampus/zf-apigility 1.0.3 Apigility module for ZF2
zfcampus/zf-apigility-admin 1.1.2 Apigility Admin module
zfcampus/zf-apigility-admin-ui 1.1.4 Apigility Admin UI module
zfcampus/zf-apigility-documentation 1.0.5 Apigility API documentation module
zfcampus/zf-apigility-provider 1.0.1 Apigility interfaces
...
目前最新版本为1.1.1
。 何以进行更新?
我试图通过composer.json
编辑
{
...
"require": {
"php": ">=5.3.23",
"zendframework/zendframework": "~2.4",
"zfcampus/zf-apigility": "~1.0", -> changed to "~1.1"
...
}
...
}
此尝试导致错误:
$ composer update
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
Problem 1
- The requested package zfcampus/zf-apigility could not be found in any version, there may be a typo in the package name.
Problem 2
- zfcampus/zf-apigility-admin 1.1.2 requires zfcampus/zf-apigility ~1.0 -> no matching package found.
- zfcampus/zf-apigility-admin 1.1.2 requires zfcampus/zf-apigility ~1.0 -> no matching package found.
- Installation request for zfcampus/zf-apigility-admin >=1.1.2,<2.0.0 -> satisfiable by zfcampus/zf-apigility-admin[1.1.2].
Potential causes:
- A typo in the package name
- The package is not available in a stable-enough version according to your minimum-stability setting
see <https://groups.google.com/d/topic/composer-dev/_g3ASeIFlrc/discussion> for more details.
Read <http://getcomposer.org/doc/articles/troubleshooting.md> for further common problems.
答案 0 :(得分:0)
为什么你认为最新版本的Apigility是1.1.1? https://packagist.org/packages/zfcampus/zf-apigility显示1.0.3(您已经拥有)作为最新版本,Github repository也是如此。
这是skeleton application,版本为1.1.1。