=2.4", "simplesamlphp/simplesamlphp-6ren">
gpt4 book ai didi

symfony - Composer 无法解析 simplesamlphp 的依赖关系

转载 作者:行者123 更新时间:2023-12-02 17:43:11 28 4
gpt4 key购买 nike

我想安装一个具有以下依赖项的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 一切都可以。

应该如何修改 bundle 的composer.json文件,以便我不需要单独的simplesamlphp dev-master需求?

最佳答案

hslavich/simplesamlphp-bundle v1.13 需要 simplesamlphp/simplesamlphp 1.13

但是 simplesamlphp/simplesamlphp v1.13.2 需要 openid/php-openid: dev-master#ee669c6a9d4d95b58ecd9b6945627276807694fb 作为 2.2.2

添加您的composer.json:

"hslavich/simplesamlphp-bundle": "1.*",
"openid/php-openid": "dev-master#ee669c6a9d4d95b58ecd9b6945627276807694fb"

最后一行是必需的,因为 openid/php-openid dev-master 不稳定。

供您引用,penid/php-openid 需要 gmp PHP 扩展。

关于symfony - Composer 无法解析 simplesamlphp 的依赖关系,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33432525/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com