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

标签 symfony composer-php simplesamlphp

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

相关文章:

php - SimpleSAMLphp 在注销时不重定向

php - 如何在 SimpleSAMLphp 中更改 NameID

php - 将 Omnipay 与 PayPal Express Checkout 集成 [symfony2]

symfony - 在 EasyAdmin 3.x 中使用 autocomplete() 时如何设置 AssociationField 选择标签

git - Composer 更新 - 没有获得最新版本

php - namespace 错误。卡在 'MyApp\Chat'

symfony - 尽管启用了 csrf,但 "csrf_provider"下仍无法识别选项 "security.firewalls.main.form_login"

css - 使用 assetic 将 scss 和 css 文件分组到一个文件中

尽管我可以 ssh 进入 github,但 git clone 给出的权限被拒绝

php - 如何创建我自己的登录页面而不是 simplesamlphp IDP 登录页面