2014-02-11 56 views
0

我在我的項目中使用了很棒的奏鳴曲管理軟件包。 但是幾個月後,在使用composer進行更新時,我遇到了依賴問題。我需要更改版本聲明,但它一直給我錯誤。需要幫助來清理/組織作曲家的奏鳴曲項目依賴項

我看了一下關於奏鳴曲的文檔,但它沒有提供任何幫助。

所以我問這裏是否有人可以在composer文件中給我正確的配置來讓所有的奏鳴曲包一起工作。

這裏是我的composer.json

"php": ">=5.3.3", 
    "symfony/symfony": "2.3.*", 
    "doctrine/orm": ">=2.2.3,<2.4-dev", 
    "doctrine/doctrine-bundle": "1.2.*", 
    "twig/extensions": "1.0.*", 
    "symfony/assetic-bundle": "2.3.*", 
    "symfony/swiftmailer-bundle": "2.3.*", 
    "symfony/monolog-bundle": "2.3.*", 
    "sensio/distribution-bundle": "2.3.*", 
    "sensio/framework-extra-bundle": "2.3.*", 
    "sensio/generator-bundle": "2.3.*", 
    "incenteev/composer-parameter-handler": "~2.0", 
    "friendsofsymfony/user-bundle": "1.3.*", 
    "sonata-project/admin-bundle": "2.2.*@dev", 
    "sonata-project/block-bundle": "2.1.*@dev", 
    "sonata-project/cache-bundle": "dev-master", 
    "sonata-project/jquery-bundle": "1.8.*@dev", 
    "sonata-project/easy-extends-bundle" : "dev-master", 
    "sonata-project/intl-bundle" : "dev-master", 
    "sonata-project/doctrine-orm-admin-bundle": "dev-master", 
    "sonata-project/user-bundle": "dev-master", 
    "sonata-project/media-bundle" : "dev-master", 
    "genemu/form-bundle": "2.2.*", 
    "winzou/console-bundle": "1.*", 
    "knplabs/knp-menu-bundle": "[email protected]", 
    "knplabs/knp-menu": "[email protected]" 

我的Symfony的版本是提前2.3.8

感謝。

+0

您可以發佈哪些依賴requiers作曲家,同時更新?例如。你會得到什麼錯誤? – Hast

+0

' - sonata-project/cache-bundle dev-master需要sonata-project/cache [email protected] - >找不到匹配的包。「是我現在得到的錯誤(沒有任何修改)。事情是,一個月前我有錯誤。我需要在某些軟件包中更改版本,所以我認爲我的依賴關係配置與錯誤版本混爲一談。 – Link14

回答

1

這裏正在作曲家配置奏鳴曲束和Symfony的2.3.9

{ 
    "sonata-project/admin-bundle": "dev-master", 
    "sonata-project/core-bundle": "[email protected]", 
    "sonata-project/doctrine-orm-admin-bundle": "dev-master", 
    "sonata-project/intl-bundle": "dev-master", 
    "sonata-project/cache-bundle": "dev-master", 
    "sonata-project/cache": "[email protected]", 
    "sonata-project/block-bundle": "@dev", 
    "sonata-project/jquery-bundle": "@dev", 
    "sonata-project/doctrine-extensions": "1.0.0", 
    "sonata-project/user-bundle": "dev-master", 
    "sonata-project/easy-extends-bundle": "dev-master", 
    "sonata-project/exporter": "1.3.*" 
} 
+0

Symfony 2.3.9的定義在哪裏?您是否考慮過不使用開發版本來獲得穩定的版本到您的軟件中? – Sven

+0

@對不起? 2.3.9是2.3.x分支的穩定版本。 http://symfony.com/download – Hast

+0

此配置也適用於作曲者根節中設置爲** stable **的「minimum-stability」。 – Hast