如何在使用 fos\RestBundle ^2.0@dev 的 symfony 2.7.5 上安装 fos CommentBundle
how install fos CommentBundle on symfony 2.7.5 that that use fos\RestBundle ^2.0@dev
我使用 symfony 2.7.5-dev
并在上面安装 FOSRestBundle
和 JMSSerilizerBundle
,安装的版本 FOSRestBundle
和 JMSSerializerbundle
是 dev-master
。
我的`composer.json:
"minimum-stability": "dev",
...
"require": {
"php": ">=5.3.9",
"symfony/symfony": "2.7.*",
...
"friendsofsymfony/rest-bundle": "^2.0@dev",
"jms/serializer-bundle": "^1.1@dev",
...
我尝试通过 composer require friendsofsymfony/comment-bundle
命令安装包,我将 "minimum-stability": "dev"
添加到 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 ^2.0@dev -> 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.
我可以通过分叉存储库并将依赖项(FOSRestBundle
和 JMSSerializerBundle
)版本更改为最新版本来安装 FOSCommentBundle
。
我需要更改 ThreadController
中的一些代码,RouteRedirectView
class 在 FOSRestBundle
的新版本中被删除,我们必须 class 而不是使用 View
class.
的 createRouteRedirect
方法
我使用 symfony 2.7.5-dev
并在上面安装 FOSRestBundle
和 JMSSerilizerBundle
,安装的版本 FOSRestBundle
和 JMSSerializerbundle
是 dev-master
。
我的`composer.json:
"minimum-stability": "dev",
...
"require": {
"php": ">=5.3.9",
"symfony/symfony": "2.7.*",
...
"friendsofsymfony/rest-bundle": "^2.0@dev",
"jms/serializer-bundle": "^1.1@dev",
...
我尝试通过 composer require friendsofsymfony/comment-bundle
命令安装包,我将 "minimum-stability": "dev"
添加到 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 ^2.0@dev -> 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.
我可以通过分叉存储库并将依赖项(FOSRestBundle
和 JMSSerializerBundle
)版本更改为最新版本来安装 FOSCommentBundle
。
我需要更改 ThreadController
中的一些代码,RouteRedirectView
class 在 FOSRestBundle
的新版本中被删除,我们必须 class 而不是使用 View
class.
createRouteRedirect
方法