我正面临着为payum捆绑安装wiseape / sofort-ueberweisung网关的问题。我可以看到它是payum核心上的版本依赖问题,但无法弄清楚如何解决它。
我安装的payum核心版本为1.1而且wiseape / sofort-ueberweisung只需要0.12.0,所以我在这里丢失了,因为它还告诉我不要安装0.12.x-dev的核心版本?
这是包:https://github.com/wiseape/payum-sofortuberweisung
这是我运行的命令:
sudo php composer.phar需要" wiseape / payum-sofortuberweisung"
结果如下:
Using version ^1.1 for wiseape/payum-sofortuberweisung
./composer.json has been updated
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
- wiseape/payum-sofortuberweisung 1.x-dev requires payum/core ~0.12.0 -> satisfiable by payum/core[0.12.x-dev].
- wiseape/payum-sofortuberweisung v1.1.0 requires payum/core ~0.12.0 -> satisfiable by payum/core[0.12.x-dev].
- wiseape/payum-sofortuberweisung v1.1.1 requires payum/core ~0.12.0 -> satisfiable by payum/core[0.12.x-dev].
- wiseape/payum-sofortuberweisung v1.1.2 requires payum/core ~0.12.0 -> satisfiable by payum/core[0.12.x-dev].
- wiseape/payum-sofortuberweisung v1.1.3 requires payum/core ~0.12.0 -> satisfiable by payum/core[0.12.x-dev].
- wiseape/payum-sofortuberweisung v1.1.4 requires payum/core ~0.12.0 -> satisfiable by payum/core[0.12.x-dev].
- wiseape/payum-sofortuberweisung v1.1.5 requires payum/core ~0.12.0 -> satisfiable by payum/core[0.12.x-dev].
- Conclusion: don't install payum/core 0.12.x-dev
- Installation request for wiseape/payum-sofortuberweisung ^1.1 -> satisfiable by wiseape/payum-sofortuberweisung[1.x-dev, v1.1.0, v1.1.1, v1.1.2, v1.1.3, v1.1.4, v1.1.5].
这是我的composer.json
{
"minimum-stability": "dev",
"name": "ubuntu/api",
"license": "proprietary",
"type": "project",
"autoload": {
"psr-4": {
"": "src/"
},
"files": [
"app/AppKernel.php"
]
},
"require": {
"php": ">=5.3.9",
"symfony/symfony": "2.8.*@dev",
"doctrine/orm": "^2.4.8",
"doctrine/doctrine-bundle": "~1.4",
"symfony/swiftmailer-bundle": "~2.3",
"symfony/monolog-bundle": "~2.4",
"sensio/distribution-bundle": "~5.0@dev",
"sensio/framework-extra-bundle": "^3.0.2",
"incenteev/composer-parameter-handler": "~2.0",
"snc/redis-bundle": "1.1.8",
"predis/predis": "0.8.*",
"payum/payum-bundle": "*@stable",
"psliwa/pdf-bundle": "^1.0",
"tfox/mpdf-port-bundle": "^1.3",
"payum/offline": "*@stable",
"payum/paypal-express-checkout-nvp": "^1.1",
"phpunit/phpunit": "^5.1",
"payum/core": "^1.1",
},
"require-dev": {
"sensio/generator-bundle": "~3.0",
"symfony/phpunit-bridge": "~2.7"
},
"scripts": {
"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-update-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"
]
},
"config": {
"bin-dir": "bin"
},
"extra": {
"symfony-app-dir": "app",
"symfony-web-dir": "web",
"symfony-assets-install": "relative",
"incenteev-parameters": {
"file": "app/config/parameters.yml"
}
}
}
答案 0 :(得分:0)
您想要使用的库的简短回答需要相当旧的payum核心。有四种方法: