如何在 symfony 2.3 中安装 surfnet/stepup-saml-bundle
How to install surfnet/stepup-saml-bundle in symfony 2.3
我正在尝试在 symfony 2.3 中安装 surfnet/stepup-saml-bundle 但是当我执行 composer 时需要 surfnet/stepup-saml-bundle 我收到这个错误:
Problem 1
- Installation request for surfnet/stepup-saml-bundle ~1.7.0 -> satisfiable by surfnet/stepup-saml-bundle[1.7.0].
- Conclusion: remove symfony/symfony v2.3.11
- Conclusion: don't install symfony/symfony v2.3.11
- surfnet/stepup-saml-bundle 1.7.0 requires symfony/dependency-injection ^2.7 -> satisfiable by
symfony/symfony[2.7.x-dev, 2.8.x-dev],
symfony/dependency-injection[2.7.x-dev, 2.8.x-dev, v2.7.0,
v2.7.0-BETA1, v2.7.0-BETA2, v2.7.1, v2.7.2, v2.7.3, v2.7.4, v2.7.5,
v2.7.6, v2.7.7, v2.7.8, v2.7.9, v2.8.0, v2.8.0-BETA1, v2.8.1, v2.8.2].
- Can only install one of: symfony/symfony[2.7.x-dev, v2.3.11].
- Can only install one of: symfony/symfony[2.8.x-dev, v2.3.11].
- don't install symfony/dependency-injection 2.7.x-dev|don't install symfony/symfony v2.3.11
- don't install symfony/dependency-injection 2.8.x-dev|don't install symfony/symfony v2.3.11
- don't install symfony/dependency-injection v2.7.0|don't install symfony/symfony v2.3.11
- don't install symfony/dependency-injection v2.7.0-BETA1|don't install symfony/symfony v2.3.11
- don't install symfony/dependency-injection v2.7.0-BETA2|don't install symfony/symfony v2.3.11
- don't install symfony/dependency-injection v2.7.1|don't install symfony/symfony v2.3.11
- don't install symfony/dependency-injection v2.7.2|don't install symfony/symfony v2.3.11
- don't install symfony/dependency-injection v2.7.3|don't install symfony/symfony v2.3.11
- don't install symfony/dependency-injection v2.7.4|don't install symfony/symfony v2.3.11
- don't install symfony/dependency-injection v2.7.5|don't install symfony/symfony v2.3.11
- don't install symfony/dependency-injection v2.7.6|don't install symfony/symfony v2.3.11
- don't install symfony/dependency-injection v2.7.7|don't install symfony/symfony v2.3.11
- don't install symfony/dependency-injection v2.7.8|don't install symfony/symfony v2.3.11
- don't install symfony/dependency-injection v2.7.9|don't install symfony/symfony v2.3.11
- don't install symfony/dependency-injection v2.8.0|don't install symfony/symfony v2.3.11
- don't install symfony/dependency-injection v2.8.0-BETA1|don't install symfony/symfony v2.3.11
- don't install symfony/dependency-injection v2.8.1|don't install symfony/symfony v2.3.11
- don't install symfony/dependency-injection v2.8.2|don't install symfony/symfony v2.3.11
- Installation request for symfony/symfony == 2.3.11.0 -> satisfiable by symfony/symfony[v2.3.11].
Installation failed, reverting ./composer.json to its original
content.
我试过 composer require surfnet/stepup-saml-bundle ~1.3.0
并更改了版本,但还是一样。
有人知道如何使这个包在 symfony 2.3 安装上工作吗?
这里是v1.3
相关的composer.json
更新
您可以下载 zip file 并将其解压到 vendor 文件夹中
更改 composer.json 文件如下:
"require": {
"php": ">=5.4,<8.0-dev",
"ext-openssl": "*",
"simplesamlphp/saml2": "^1.8",
"symfony/dependency-injection": "^2.3", // dep inject 2.3 !
"symfony/framework-bundle": "^2.3",** // sf 2.3 !
"robrichards/xmlseclibs": "^1.4.0"
},
在 composer.json post-install-cmd 下方:
"post-install-cmd": [
"Incenteev\ParameterHandler\ScriptHandler::buildParameters",
"Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::buildBootstrap",
"Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::clearCache",
"Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::installAssets",
"Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::installRequirementsFile",
"Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::prepareDeploymentTarget"
],
你可以按照之前说的进行,运行这个命令是为了运行post安装脚本
composer run-script [--dev] [--no-dev] script
我能够做到的唯一方法是创建一个包的分支,然后创建一个名为 sf23 的分支,修改 composer.json 以更改对 symfony2.3 的依赖,并将其添加到存储库中的 symfony composer.json 文件:
{
"type" : "vcs",
"url" : "for_url"
}
and then did a:
php composer.phar require "fork_bundle_name:dev-sf23"
sf23 is the name of the branch created with all the modifications
我正在尝试在 symfony 2.3 中安装 surfnet/stepup-saml-bundle 但是当我执行 composer 时需要 surfnet/stepup-saml-bundle 我收到这个错误:
Problem 1 - Installation request for surfnet/stepup-saml-bundle ~1.7.0 -> satisfiable by surfnet/stepup-saml-bundle[1.7.0]. - Conclusion: remove symfony/symfony v2.3.11 - Conclusion: don't install symfony/symfony v2.3.11 - surfnet/stepup-saml-bundle 1.7.0 requires symfony/dependency-injection ^2.7 -> satisfiable by symfony/symfony[2.7.x-dev, 2.8.x-dev], symfony/dependency-injection[2.7.x-dev, 2.8.x-dev, v2.7.0, v2.7.0-BETA1, v2.7.0-BETA2, v2.7.1, v2.7.2, v2.7.3, v2.7.4, v2.7.5, v2.7.6, v2.7.7, v2.7.8, v2.7.9, v2.8.0, v2.8.0-BETA1, v2.8.1, v2.8.2]. - Can only install one of: symfony/symfony[2.7.x-dev, v2.3.11]. - Can only install one of: symfony/symfony[2.8.x-dev, v2.3.11]. - don't install symfony/dependency-injection 2.7.x-dev|don't install symfony/symfony v2.3.11 - don't install symfony/dependency-injection 2.8.x-dev|don't install symfony/symfony v2.3.11 - don't install symfony/dependency-injection v2.7.0|don't install symfony/symfony v2.3.11 - don't install symfony/dependency-injection v2.7.0-BETA1|don't install symfony/symfony v2.3.11 - don't install symfony/dependency-injection v2.7.0-BETA2|don't install symfony/symfony v2.3.11 - don't install symfony/dependency-injection v2.7.1|don't install symfony/symfony v2.3.11 - don't install symfony/dependency-injection v2.7.2|don't install symfony/symfony v2.3.11 - don't install symfony/dependency-injection v2.7.3|don't install symfony/symfony v2.3.11 - don't install symfony/dependency-injection v2.7.4|don't install symfony/symfony v2.3.11 - don't install symfony/dependency-injection v2.7.5|don't install symfony/symfony v2.3.11 - don't install symfony/dependency-injection v2.7.6|don't install symfony/symfony v2.3.11 - don't install symfony/dependency-injection v2.7.7|don't install symfony/symfony v2.3.11 - don't install symfony/dependency-injection v2.7.8|don't install symfony/symfony v2.3.11 - don't install symfony/dependency-injection v2.7.9|don't install symfony/symfony v2.3.11 - don't install symfony/dependency-injection v2.8.0|don't install symfony/symfony v2.3.11 - don't install symfony/dependency-injection v2.8.0-BETA1|don't install symfony/symfony v2.3.11 - don't install symfony/dependency-injection v2.8.1|don't install symfony/symfony v2.3.11 - don't install symfony/dependency-injection v2.8.2|don't install symfony/symfony v2.3.11 - Installation request for symfony/symfony == 2.3.11.0 -> satisfiable by symfony/symfony[v2.3.11].
Installation failed, reverting ./composer.json to its original content.
我试过 composer require surfnet/stepup-saml-bundle ~1.3.0
并更改了版本,但还是一样。
有人知道如何使这个包在 symfony 2.3 安装上工作吗?
这里是v1.3
更新
您可以下载 zip file 并将其解压到 vendor 文件夹中 更改 composer.json 文件如下:
"require": {
"php": ">=5.4,<8.0-dev",
"ext-openssl": "*",
"simplesamlphp/saml2": "^1.8",
"symfony/dependency-injection": "^2.3", // dep inject 2.3 !
"symfony/framework-bundle": "^2.3",** // sf 2.3 !
"robrichards/xmlseclibs": "^1.4.0"
},
在 composer.json post-install-cmd 下方:
"post-install-cmd": [
"Incenteev\ParameterHandler\ScriptHandler::buildParameters",
"Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::buildBootstrap",
"Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::clearCache",
"Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::installAssets",
"Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::installRequirementsFile",
"Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::prepareDeploymentTarget"
],
你可以按照之前说的进行,运行这个命令是为了运行post安装脚本
composer run-script [--dev] [--no-dev] script
我能够做到的唯一方法是创建一个包的分支,然后创建一个名为 sf23 的分支,修改 composer.json 以更改对 symfony2.3 的依赖,并将其添加到存储库中的 symfony composer.json 文件:
{ "type" : "vcs", "url" : "for_url" } and then did a: php composer.phar require "fork_bundle_name:dev-sf23" sf23 is the name of the branch created with all the modifications