2016-01-15 45 views
0

我正面臨爲payum bundle安裝wiseape/sofort-ueweweisung網關的問題。我可以看到它是Payum核心上的版本依賴問題,但無法弄清楚如何解決它。PHP Symfony 2/Payum Bundle /正在安裝wiseape/sofort-ueberweisung

我已安裝的付款核心版本1.1和wiseape/sofort-ueberweisung只需要0.12.0,所以我在這裏輸了,因爲它也告訴我不要安裝核心版本的0.12.x-dev?

這是包:https://github.com/wiseape/payum-sofortuberweisung

這是我運行命令:

須藤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": "[email protected]", 
    "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

看起來這個軟件包已經過時了(它的最近一次提交是在近一年前完成的)。有沒有其他的軟件包可以用於你的用例? – xabbuh

回答

0

庫要使用簡短的回答需要很老payum核心。有四種方法可以去:

  1. 您可以降級payum核心版本。在這種情況下,您可以丟失錯誤修復,並在Payum中進行功能改進。
  2. 將庫wiseape/sofort-ueberweisung升級至1.0版本。升級說明可能會在這裏幫助你很多:https://github.com/Payum/Payum/blob/master/UPGRADE.md
  3. 有一個替代擴展https://github.com/invit/payum-sofortueberweisung它在生產中工作,但它需要支付版本0.15。應該更容易從1.0升級到1.0。
  4. 此外,我開始在付款https://github.com/Payum/Payum/pull/447中添加sofort擴展。 PR基於init的工作。有一些事情需要完成和測試。不幸的是,我不給你任何ETA。