我正在尝试构建一个Silex应用程序,具有以下要求
要求
- Yaml配置
- Doctrine ORM
- 简单用户授权
醇>
my composer.json
{
"require": {
"silex/silex": "~1.2",
"symfony/yaml": "2.6.7",
"doctrine/dbal": "~2.2",
"deralex/yaml-config-service-provider": "1.0.x-dev",
"dflydev/doctrine-orm-service-provider": "2.0.*@dev",
"jasongrimes/silex-simpleuser": "~1.0"
}
}
当我运行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
- Conclusion: remove silex/silex v1.2.4
- Conclusion: don't install dflydev/doctrine-orm-service-provider 2.0.x-dev
- Conclusion: don't install dflydev/doctrine-orm-service-provider v2.0.0|remove pimple/pimple v1.1.1|install pimple/pimple v3.0.0
- Conclusion: don't install pimple/pimple v3.0.0
- Conclusion: don't install silex/silex v1.2.4
- Conclusion: don't install silex/silex v1.2.3
- Conclusion: don't install silex/silex v1.2.2
- Conclusion: don't install silex/silex v1.2.1
- Conclusion: don't install pimple/pimple v1.1.1
- Installation request for dflydev/doctrine-orm-service-provider 2.0.*@dev -> satisfiable by dflydev/doctrine-orm-service-provider[2.0.x-dev, v2.0.0].
- Installation request for silex/silex ~1.2 -> satisfiable by silex/silex[v1.2.0, v1.2.1, v1.2.2, v1.2.3, v1.2.4].
- silex/silex v1.2.0 requires pimple/pimple ~1.0 -> satisfiable by pimple/pimple[v1.1.1, 1.0.0, v1.0.1, v1.0.2, v1.1.0].
- Can only install one of: pimple/pimple[v2.1.0, 1.0.0].
- Can only install one of: pimple/pimple[v2.1.0, v1.0.1].
- Can only install one of: pimple/pimple[v2.1.0, v1.0.2].
- Can only install one of: pimple/pimple[v2.1.0, v1.1.0].
- dflydev/doctrine-orm-service-provider v2.0.0 requires pimple/pimple >=2.1,<4 -> satisfiable by pimple/pimple[v2.1.0, v2.1.1, v3.0.0].
- Conclusion: don't install pimple/pimple v2.1.1
我对熟悉作曲家json文件语法的复杂性并不太熟悉。
我该如何解决这个问题?
答案 0 :(得分:0)
您的两个依赖项需要不同版本的pimple
包:
您可以切换到最新的silex或以前版本的doctrine-orm-service-provider来解决此问题。
查看packagist.org以查看包含其依赖项的可用版本:silex,doctrine-orm-service-provider。