嗨我的應用程序運行Symfony2.7.15
其中包含new Sensio\Bundle\FrameworkExtraBundle\SensioFrameworkExtraBundle()
AppKarnel.php
以及。FOSREST Bundle衝突與SensioFrameworkExtraBundle
現在我們需要爲用戶webservices製作一個Restful API。我正在嘗試安裝FOSRESTBundle
用於此目的,但出現以下錯誤。
friendsofsymfony/rest-bundle 1.8.0 conflicts with sensio/framework-extra-bundle[v3.0.16].
- friendsofsymfony/rest-bundle 1.8.0 conflicts with sensio/framework-extra-bundle[v3.0.16].
- friendsofsymfony/rest-bundle 1.8.0 conflicts with sensio/framework-extra-bundle[v3.0.16].
- Installation request for friendsofsymfony/rest-bundle ^1.8 -> satisfiable by friendsofsymfony/rest-bundle[1.8.0].
- Installation request for sensio/framework-extra-bundle (locked at v3.0.16, required as ^3.0.2) -> satisfiable by sensio/framework-extra-bundle[v3.0.16].
請建議如何解決這個問題。
問題1 - friendsofsymfony/rest-bundle 2.0.0的安裝請求 - >可以通過friendsofsymfony/rest-bundle [2.0.0]滿足。您的PHP版本(5.5.9-1ubuntu4.17)被「config.platform.php」版本(5.3.9)覆蓋的版本(5.3.9)不支持php^5.5.9 |〜7.0 - >您的PHP版本(5.5.9-1ubuntu4.17)不支持php.ini文件滿足這一要求。 –
我已經做了#1,然後安裝1.8版本的fosrest捆綁它現在安裝..謝謝 –