2015-05-25 56 views
1

當我試圖建立一個Silex的應用程序,符合下列要求作曲:無法解決的依賴安裝Silex的應用

要求

  1. YAML配置
  2. 學說ORM
  3. 簡單用戶授權

我composer.json

{  
    "require": {  
     "silex/silex": "~1.2",  
     "symfony/yaml": "2.6.7",  
     "doctrine/dbal": "~2.2",  
     "deralex/yaml-config-service-provider": "1.0.x-dev",  
     "dflydev/doctrine-orm-service-provider": "2.0.*@dev",  
     "jasongrimes/silex-simpleuser": "~1.0"  
    }  
}  

當我運行composer update,我得到以下

輸出

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 
    - Conclusion: remove silex/silex v1.2.4 
    - Conclusion: don't install dflydev/doctrine-orm-service-provider 2.0.x-dev 
    - Conclusion: don't install dflydev/doctrine-orm-service-provider v2.0.0|remove pimple/pimple v1.1.1|install pimple/pimple v3.0.0 
    - Conclusion: don't install pimple/pimple v3.0.0 
    - Conclusion: don't install silex/silex v1.2.4 
    - Conclusion: don't install silex/silex v1.2.3 
    - Conclusion: don't install silex/silex v1.2.2 
    - Conclusion: don't install silex/silex v1.2.1 
    - Conclusion: don't install pimple/pimple v1.1.1 
    - Installation request for dflydev/doctrine-orm-service-provider 2.0.*@dev -> satisfiable by dflydev/doctrine-orm-service-provider[2.0.x-dev, v2.0.0]. 
    - Installation request for silex/silex ~1.2 -> satisfiable by silex/silex[v1.2.0, v1.2.1, v1.2.2, v1.2.3, v1.2.4]. 
    - silex/silex v1.2.0 requires pimple/pimple ~1.0 -> satisfiable by pimple/pimple[v1.1.1, 1.0.0, v1.0.1, v1.0.2, v1.1.0]. 
    - Can only install one of: pimple/pimple[v2.1.0, 1.0.0]. 
    - Can only install one of: pimple/pimple[v2.1.0, v1.0.1]. 
    - Can only install one of: pimple/pimple[v2.1.0, v1.0.2]. 
    - Can only install one of: pimple/pimple[v2.1.0, v1.1.0]. 
    - dflydev/doctrine-orm-service-provider v2.0.0 requires pimple/pimple >=2.1,<4 -> satisfiable by pimple/pimple[v2.1.0, v2.1.1, v3.0.0]. 
    - Conclusion: don't install pimple/pimple v2.1.1 

我不是太熟悉groking的錯綜複雜的作曲家json文件語法。

我該如何解決這個問題?

回答

0

你的依賴的兩種需要不同版本pimple包:

  • 硅石/硅石V1.2.0需要疙瘩/疙瘩〜1.0
  • dflydev /學說-ORM服務提供商V2.0.0需要疙瘩/ pimple> = 2.1

您可以切換到最新的silex或以前版本的doctrine-orm-service-provider來解決此問題。

查看packagist.org以查看可用版本及其依賴關係:silex,doctrine-orm-service-provider

+0

那麼你如何解決這個問題呢?我有同樣的問題。 –