1

我用symfony 2.7.5-dev和安装FOSRestBundleJMSSerilizerBundle在它上面安装FOSRestBundle版本和JMSSerializerbundledev-master。 我`composer.json:如何在symfony的安装2.7.5 FOS CommentBundle注意,使用FOS RestBundle ^[email protected]

"minimum-stability": "dev", 
... 
"require": { 
    "php": ">=5.3.9", 
    "symfony/symfony": "2.7.*", 
    ... 
    "friendsofsymfony/rest-bundle": "^[email protected]", 
    "jms/serializer-bundle": "^[email protected]", 
    ... 

我尝试composer require friendsofsymfony/comment-bundle命令安装包,我添加到composer.json,但不能安装并提出这个错误:

Problem 1 
- friendsofsymfony/comment-bundle v2.0.7 requires jms/serializer-bundle ~0.11 -> no matching package found. 
- friendsofsymfony/comment-bundle v2.0.6 requires jms/serializer-bundle ~0.11 -> no matching package found. 
- friendsofsymfony/comment-bundle v2.0.5 requires friendsofsymfony/rest-bundle >=0.11,<0.13-dev -> no matching package found. 
- friendsofsymfony/comment-bundle v2.0.4 requires friendsofsymfony/rest-bundle 0.11.*@dev -> no matching package found. 
- friendsofsymfony/comment-bundle 2.0.x-dev requires jms/serializer-bundle ~0.11 -> no matching package found. 
- friendsofsymfony/comment-bundle v2.0.0 requires symfony/symfony 2.1.* -> satisfiable by symfony/symfony[2.1.x-dev]. 
- friendsofsymfony/comment-bundle v2.0.1 requires symfony/symfony 2.1.* -> satisfiable by symfony/symfony[2.1.x-dev]. 
- friendsofsymfony/comment-bundle v2.0.2 requires symfony/symfony 2.1.*@stable -> satisfiable by symfony/symfony[2.1.x-dev]. 
- friendsofsymfony/comment-bundle v2.0.3 requires symfony/symfony 2.1.*@stable -> satisfiable by symfony/symfony[2.1.x-dev]. 
- Conclusion: don't install symfony/symfony 2.1.x-dev 
- Installation request for friendsofsymfony/comment-bundle ^[email protected] -> satisfiable by friendsofsymfony/comment-bundle[2.0.x-dev, v2.0.0, v2.0.1, v2.0.2, v2.0.3, v2.0.4, v2.0.5, v2.0.6, v2.0.7]. 

Potential causes: 
- A typo in the package name 
- The package is not available in a stable-enough version according to your minimum-stability setting 
see <https://groups.google.com/d/topic/composer-dev/_g3ASeIFlrc/discussion> for more details. 

Read <https://getcomposer.org/doc/articles/troubleshooting.md> for further common problems. 

Installation failed, reverting ./composer.json to its original content. 
+0

我叉库和更新作曲家及控制器,现在它的symfony工作2.7 https://github.com/ghanbari/FOSCommentBundle – ghanbari

+0

你能张贴它作为一个答案? –

回答

0

我可以通过安装FOSCommentBundle将版本库&更改为最新版本(FOSRestBundle & JMSSerializerBundle)版本。

我需要ThreadController改变一些代码,RouteRedirectView类是在FOSRestBundle新版本中删除,我们不是这个类必须使用ViewcreateRouteRedirect方法。

My repository on github

相关问题