[英]Error while installing friendsofsymfony/user-bundle
While installing the friends of Symfony
user bundle, I came across this error. 在安装
Symfony
用户捆绑包的朋友时,遇到了此错误。 Can someone help me solve this issue? 有人可以帮我解决这个问题吗?
Ahmeds-MBP:placementlink2 ahmed$ composer require friendsofsymfony/user-bundle
Using version ^2.1 for friendsofsymfony/user-bundle
./composer.json has been updated 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: don't install friendsofsymfony/user-bundle v2.1.2
- Conclusion: don't install friendsofsymfony/user-bundle v2.1.1
- Conclusion: don't install twig/twig v2.5.0
- Conclusion: remove twig/twig v1.23.1
- Conclusion: don't install twig/twig v2.4.8
- Installation request for friendsofsymfony/user-bundle ^2.1 -> satisfiable by friendsofsymfony/user-bundle[v2.1.0, v2.1.1, v2.1.2].
- Conclusion: don't install twig/twig v1.23.1
- friendsofsymfony/user-bundle v2.1.0 requires twig/twig ^1.28 || ^2.0 -> satisfiable by twig/twig[v1.28.0, v1.28.1, v1.28.2, v1.29.0, v1.30.0, v1.31.0, v1.32.0, v1.33.0, v1.33.1, v1.33.2, v1.34.0, v1.34.1, v1.34.2, v1.34.3, v1.34.4, v1.35.0, v1.35.1, v1.35.2, v1.35.3, v1.35.4, v2.0.0, v2.1.0, v2.2.0, v2.3.0, v2.3.1, v2.3.2, v2.4.0, v2.4.1, v2.4.2, v2.4.3, v2.4.4, v2.4.5, v2.4.6, v2.4.7, v2.4.8, v2.5.0].
- Can only install one of: twig/twig[v1.28.0, v1.23.1].
- Can only install one of: twig/twig[v1.28.1, v1.23.1].
- Can only install one of: twig/twig[v1.28.2, v1.23.1].
- Can only install one of: twig/twig[v1.29.0, v1.23.1].
- Can only install one of: twig/twig[v1.30.0, v1.23.1].
- Can only install one of: twig/twig[v1.31.0, v1.23.1].
- Can only install one of: twig/twig[v1.32.0, v1.23.1].
- Can only install one of: twig/twig[v1.33.0, v1.23.1].
- Can only install one of: twig/twig[v1.33.1, v1.23.1].
- Can only install one of: twig/twig[v1.33.2, v1.23.1].
- Can only install one of: twig/twig[v1.34.0, v1.23.1].
- Can only install one of: twig/twig[v1.34.1, v1.23.1].
- Can only install one of: twig/twig[v1.34.2, v1.23.1].
- Can only install one of: twig/twig[v1.34.3, v1.23.1].
- Can only install one of: twig/twig[v1.34.4, v1.23.1].
- Can only install one of: twig/twig[v1.35.0, v1.23.1].
- Can only install one of: twig/twig[v1.35.1, v1.23.1].
- Can only install one of: twig/twig[v1.35.2, v1.23.1].
- Can only install one of: twig/twig[v1.35.3, v1.23.1].
- Can only install one of: twig/twig[v1.35.4, v1.23.1].
- Can only install one of: twig/twig[v2.0.0, v1.23.1].
- Can only install one of: twig/twig[v2.1.0, v1.23.1].
- Can only install one of: twig/twig[v2.2.0, v1.23.1].
- Can only install one of: twig/twig[v2.3.0, v1.23.1].
- Can only install one of: twig/twig[v2.3.1, v1.23.1].
- Can only install one of: twig/twig[v2.3.2, v1.23.1].
- Can only install one of: twig/twig[v2.4.0, v1.23.1].
- Can only install one of: twig/twig[v2.4.1, v1.23.1].
- Can only install one of: twig/twig[v2.4.2, v1.23.1].
- Can only install one of: twig/twig[v2.4.3, v1.23.1].
- Can only install one of: twig/twig[v2.4.4, v1.23.1].
- Can only install one of: twig/twig[v2.4.5, v1.23.1].
- Can only install one of: twig/twig[v2.4.6, v1.23.1].
- Can only install one of: twig/twig[v2.4.7, v1.23.1].
- Installation request for twig/twig (locked at v1.23.1) -> satisfiable by twig/twig[v1.23.1].
Installation failed, reverting ./composer.json to its original content.
and this is my composer.json file: 这是我的composer.json文件:
"require":{
"php":">=5.5.9",
"symfony/symfony":"3.0.*",
"doctrine/orm":"^2.5",
"doctrine/doctrine-bundle":"^1.6",
"doctrine/doctrine-cache-bundle":"^1.2",
"symfony/swiftmailer-bundle":"^2.3",
"symfony/monolog-bundle":"^2.8",
"sensio/distribution-bundle":"^5.0",
"sensio/framework-extra-bundle":"^3.0.2",
"incenteev/composer-parameter-handler":"^2.0"
},
"require-dev":{
"sensio/generator-bundle":"^3.0",
"symfony/phpunit-bridge":"^2.7"
},
I did a little of googling for the issue that you mentioned above and there seems to be is a bugfix for it. 我对您上面提到的问题进行了一些谷歌搜索,似乎有一个错误修正。 Unfortunately, as far as I understood, the fix was not ported to 3.0 release as, at the time of the bug, 3.0 was no longer maintained:
不幸的是,据我所知,此修复程序未移植到3.0版本,因为在发生错误时,不再维护3.0:
Fabien Potencier (fabpot) commented on Oct 23, 2016
Fabien Potencier(fabpot)于2016年10月23日发表评论
Oh, I see that you are using
Symfony 3.0
.哦,我知道您正在使用
Symfony 3.0
。 It won't work unfortunately as3.0
is not maintained anymore.不幸的是,由于不再维护
3.0
,因此无法正常工作。 You need to either upgrade to3.1
or useTwig 1.x
.您需要升级到
3.1
或使用Twig 1.x
。
Please proceed as Fabien suggested and you should probably get rid of an issue. 请按照Fabien的建议进行操作,您应该摆脱一个问题。
Hope this helps... 希望这可以帮助...
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.