【发布时间】:2016-01-30 16:11:25
【问题描述】:
我想安装一个bundle,它具有以下依赖项:
"require": {
"symfony/symfony": ">=2.4",
"simplesamlphp/simplesamlphp": "dev-master"
},
当我尝试执行 composer require hslavich/simplesamlphp-bundle dev-master 时,我得到以下信息:
Your requirements could not be resolved to an installable set of packages.
Problem 1
- simplesamlphp/simplesamlphp v1.13.2 requires openid/php-openid dev-master#ee669c6a9d4d95b58ecd9b6945627276807694fb as 2.2.2 -> no matching package found.
- simplesamlphp/simplesamlphp v1.13.1 requires openid/php-openid dev-master#ee669c6a9d4d95b58ecd9b6945627276807694fb as 2.2.2 -> no matching package found.
- simplesamlphp/simplesamlphp v1.13.0 requires openid/php-openid dev-master#ee669c6a9d4d95b58ecd9b6945627276807694fb as 2.2.2 -> no matching package found.
- simplesamlphp/simplesamlphp v1.12.0 requires openid/php-openid dev-master#ee669c6a9d4d95b58ecd9b6945627276807694fb as 2.2.2 -> no matching package found.
- hslavich/simplesamlphp-bundle dev-master requires simplesamlphp/simplesamlphp dev-master -> no matching package found.
- hslavich/simplesamlphp-bundle dev-master requires simplesamlphp/simplesamlphp * -> satisfiable by simplesamlphp/simplesamlphp[v1.12.0, v1.13.0, v1.13.1, v1.13.2].
- Installation request for hslavich/simplesamlphp-bundle dev-master -> satisfiable by hslavich/simplesamlphp-bundle[dev-master].
但如果我先做composer require simplesamlphp/simplesamlphp dev-master 然后composer require hslavich/simplesamlphp-bundle dev-master 一切正常。
应该如何修改包 composer.json 文件,以便我不需要单独要求 simplesamlphp dev-master?
【问题讨论】:
-
您的最低稳定性可能设置为
stable,这意味着您需要指定任何dev包。如果是这种情况,你可以做你所做的或者改变你的最低稳定性。
标签: symfony composer-php simplesamlphp