2015-12-16 165 views
24

FOSUserBundle與symfony 3一起工作嗎?在他們的網站上看不到任何信息。FOSUserBundle和Symfony 3.0?

我剛剛安裝了Symfony 3的新副本,做了composer update,然後嘗試安裝FOSUserBundle。

接收的東西在控制檯上不是很友好;)

composer require friendsofsymfony/user-bundle 

    Problem 1 
    - Conclusion: remove symfony/symfony v3.0.0 
    - Conclusion: don't install symfony/symfony v3.0.0 
    - friendsofsymfony/user-bundle v1.3.0 requires symfony/security-bundle 2.1.* -> satisfiable by symfony/security-bundle[v2.1.0, v2.1.1, v2.1.10, v2.1.11, v2.1.12, v2.1.13, v2.1.2, v2.1.3, v2.1.4, v2.1.5, v2.1.6, v2.1.7, v2.1.8, v2.1.9]. 
    - friendsofsymfony/user-bundle v1.3.1 requires symfony/security-bundle >=2.1,<2.3-dev -> satisfiable by symfony/security-bundle[v2.1.0, v2.1.1, v2.1.10, v2.1.11, v2.1.12, v2.1.13, v2.1.2, v2.1.3, v2.1.4, v2.1.5, v2.1.6, v2.1.7, v2.1.8, v2.1.9, v2.2.0, v2.2.1, v2.2.10, v2.2.11, v2.2.2, v2.2.3, v2.2.4, v2.2.5, v2.2.6, v2.2.7, v2.2.8, v2.2.9]. 
    - friendsofsymfony/user-bundle v1.3.2 requires symfony/security-bundle ~2.1 -> satisfiable by symfony/security-bundle[v2.1.0, v2.1.1, v2.1.10, v2.1.11, 
v2.1.12, v2.1.13, v2.1.2, v2.1.3, v2.1.4, v2.1.5, v2.1.6, v2.1.7, v2.1.8, v2.1.9, v2.2.0, v2.2.1, v2.2.10, v2.2.11, v2.2.2, v2.2.3, v2.2.4, v2.2.5, v2.2.6, 
v2.2.7, v2.2.8, v2.2.9, v2.3.0, v2.3.1, v2.3.10, v2.3.11, v2.3.12, v2.3.13, v2.3.14, v2.3.15, v2.3.16, v2.3.17, v2.3.18, v2.3.19, v2.3.2, v2.3.20, v2.3.21, 
v2.3.22, v2.3.23, v2.3.24, v2.3.25, v2.3.26, v2.3.27, v2.3.28, v2.3.29, v2.3.3, v2.3.30, v2.3.31, v2.3.32, v2.3.33, v2.3.34, v2.3.35, v2.3.4, v2.3.5, v2.3.6, v2.3.7, v2.3.8, v2.3.9, v2.4.0, v2.4.1, v2.4.10, v2.4.2, v2.4.3, v2.4.4, v2.4.5, v2.4.6, v2.4.7, v2.4.8, v2.4.9, v2.5.0, v2.5.1, v2.5.10, v2.5.11, v2.5.12, v2.5.2, v2.5.3, v2.5.4, v2.5.5, v2.5.6, v2.5.7, v2.5.8, v2.5.9, v2.6.0, v2.6.1, v2.6.10, v2.6.11, v2.6.12, v2.6.2, v2.6.3, v2.6.4, v2.6.5, v2.6.6, v2.6.7, v2.6.8, v2.6.9, v2.7.0, v2.7.1, v2.7.2, v2.7.3, v2.7.4, v2.7.5, v2.7.6, v2.7.7, v2.8.0]. 
    - friendsofsymfony/user-bundle v1.3.3 requires symfony/security-bundle ~2.1 -> satisfiable by symfony/security-bundle[v2.1.0, v2.1.1, v2.1.10, v2.1.11, 
v2.1.12, v2.1.13, v2.1.2, v2.1.3, v2.1.4, v2.1.5, v2.1.6, v2.1.7, v2.1.8, v2.1.9, v2.2.0, v2.2.1, v2.2.10, v2.2.11, v2.2.2, v2.2.3, v2.2.4, v2.2.5, v2.2.6, 
v2.2.7, v2.2.8, v2.2.9, v2.3.0, v2.3.1, v2.3.10, v2.3.11, v2.3.12, v2.3.13, v2.3.14, v2.3.15, v2.3.16, v2.3.17, v2.3.18, v2.3.19, v2.3.2, v2.3.20, v2.3.21, 
v2.3.22, v2.3.23, v2.3.24, v2.3.25, v2.3.26, v2.3.27, v2.3.28, v2.3.29, v2.3.3, v2.3.30, v2.3.31, v2.3.32, v2.3.33, v2.3.34, v2.3.35, v2.3.4, v2.3.5, v2.3.6, v2.3.7, v2.3.8, v2.3.9, v2.4.0, v2.4.1, v2.4.10, v2.4.2, v2.4.3, v2.4.4, v2.4.5, v2.4.6, v2.4.7, v2.4.8, v2.4.9, v2.5.0, v2.5.1, v2.5.10, v2.5.11, v2.5.12, v2.5.2, v2.5.3, v2.5.4, v2.5.5, v2.5.6, v2.5.7, v2.5.8, v2.5.9, v2.6.0, v2.6.1, v2.6.10, v2.6.11, v2.6.12, v2.6.2, v2.6.3, v2.6.4, v2.6.5, v2.6.6, v2.6.7, v2.6.8, v2.6.9, v2.7.0, v2.7.1, v2.7.2, v2.7.3, v2.7.4, v2.7.5, v2.7.6, v2.7.7, v2.8.0]. 
    - friendsofsymfony/user-bundle v1.3.4 requires symfony/security-bundle ~2.1 -> satisfiable by symfony/security-bundle[v2.1.0, v2.1.1, v2.1.10, v2.1.11, 
v2.1.12, v2.1.13, v2.1.2, v2.1.3, v2.1.4, v2.1.5, v2.1.6, v2.1.7, v2.1.8, v2.1.9, v2.2.0, v2.2.1, v2.2.10, v2.2.11, v2.2.2, v2.2.3, v2.2.4, v2.2.5, v2.2.6, 
v2.2.7, v2.2.8, v2.2.9, v2.3.0, v2.3.1, v2.3.10, v2.3.11, v2.3.12, v2.3.13, v2.3.14, v2.3.15, v2.3.16, v2.3.17, v2.3.18, v2.3.19, v2.3.2, v2.3.20, v2.3.21, 
v2.3.22, v2.3.23, v2.3.24, v2.3.25, v2.3.26, v2.3.27, v2.3.28, v2.3.29, v2.3.3, v2.3.30, v2.3.31, v2.3.32, v2.3.33, v2.3.34, v2.3.35, v2.3.4, v2.3.5, v2.3.6, v2.3.7, v2.3.8, v2.3.9, v2.4.0, v2.4.1, v2.4.10, v2.4.2, v2.4.3, v2.4.4, v2.4.5, v2.4.6, v2.4.7, v2.4.8, v2.4.9, v2.5.0, v2.5.1, v2.5.10, v2.5.11, v2.5.12, v2.5.2, v2.5.3, v2.5.4, v2.5.5, v2.5.6, v2.5.7, v2.5.8, v2.5.9, v2.6.0, v2.6.1, v2.6.10, v2.6.11, v2.6.12, v2.6.2, v2.6.3, v2.6.4, v2.6.5, v2.6.6, v2.6.7, v2.6.8, v2.6.9, v2.7.0, v2.7.1, v2.7.2, v2.7.3, v2.7.4, v2.7.5, v2.7.6, v2.7.7, v2.8.0]. 
    - friendsofsymfony/user-bundle v1.3.5 requires symfony/security-bundle ~2.1 -> satisfiable by symfony/security-bundle[v2.1.0, v2.1.1, v2.1.10, v2.1.11, 
v2.1.12, v2.1.13, v2.1.2, v2.1.3, v2.1.4, v2.1.5, v2.1.6, v2.1.7, v2.1.8, v2.1.9, v2.2.0, v2.2.1, v2.2.10, v2.2.11, v2.2.2, v2.2.3, v2.2.4, v2.2.5, v2.2.6, 
v2.2.7, v2.2.8, v2.2.9, v2.3.0, v2.3.1, v2.3.10, v2.3.11, v2.3.12, v2.3.13, v2.3.14, v2.3.15, v2.3.16, v2.3.17, v2.3.18, v2.3.19, v2.3.2, v2.3.20, v2.3.21, 
v2.3.22, v2.3.23, v2.3.24, v2.3.25, v2.3.26, v2.3.27, v2.3.28, v2.3.29, v2.3.3, v2.3.30, v2.3.31, v2.3.32, v2.3.33, v2.3.34, v2.3.35, v2.3.4, v2.3.5, v2.3.6, v2.3.7, v2.3.8, v2.3.9, v2.4.0, v2.4.1, v2.4.10, v2.4.2, v2.4.3, v2.4.4, v2.4.5, v2.4.6, v2.4.7, v2.4.8, v2.4.9, v2.5.0, v2.5.1, v2.5.10, v2.5.11, v2.5.12, v2.5.2, v2.5.3, v2.5.4, v2.5.5, v2.5.6, v2.5.7, v2.5.8, v2.5.9, v2.6.0, v2.6.1, v2.6.10, v2.6.11, v2.6.12, v2.6.2, v2.6.3, v2.6.4, v2.6.5, v2.6.6, v2.6.7, v2.6.8, v2.6.9, v2.7.0, v2.7.1, v2.7.2, v2.7.3, v2.7.4, v2.7.5, v2.7.6, v2.7.7, v2.8.0]. 
    - friendsofsymfony/user-bundle v1.3.6 requires symfony/security-bundle ~2.1 -> satisfiable by symfony/security-bundle[v2.1.0, v2.1.1, v2.1.10, v2.1.11, 
v2.1.12, v2.1.13, v2.1.2, v2.1.3, v2.1.4, v2.1.5, v2.1.6, v2.1.7, v2.1.8, v2.1.9, v2.2.0, v2.2.1, v2.2.10, v2.2.11, v2.2.2, v2.2.3, v2.2.4, v2.2.5, v2.2.6, 
v2.2.7, v2.2.8, v2.2.9, v2.3.0, v2.3.1, v2.3.10, v2.3.11, v2.3.12, v2.3.13, v2.3.14, v2.3.15, v2.3.16, v2.3.17, v2.3.18, v2.3.19, v2.3.2, v2.3.20, v2.3.21, 
v2.3.22, v2.3.23, v2.3.24, v2.3.25, v2.3.26, v2.3.27, v2.3.28, v2.3.29, v2.3.3, v2.3.30, v2.3.31, v2.3.32, v2.3.33, v2.3.34, v2.3.35, v2.3.4, v2.3.5, v2.3.6, v2.3.7, v2.3.8, v2.3.9, v2.4.0, v2.4.1, v2.4.10, v2.4.2, v2.4.3, v2.4.4, v2.4.5, v2.4.6, v2.4.7, v2.4.8, v2.4.9, v2.5.0, v2.5.1, v2.5.10, v2.5.11, v2.5.12, v2.5.2, v2.5.3, v2.5.4, v2.5.5, v2.5.6, v2.5.7, v2.5.8, v2.5.9, v2.6.0, v2.6.1, v2.6.10, v2.6.11, v2.6.12, v2.6.2, v2.6.3, v2.6.4, v2.6.5, v2.6.6, v2.6.7, v2.6.8, v2.6.9, v2.7.0, v2.7.1, v2.7.2, v2.7.3, v2.7.4, v2.7.5, v2.7.6, v2.7.7, v2.8.0]. 
    - don't install symfony/security-bundle v2.1.0|don't install symfony/symfony v3.0.0 
    - don't install symfony/security-bundle v2.1.1|don't install symfony/symfony v3.0.0 
    - don't install symfony/security-bundle v2.1.10|don't install symfony/symfony v3.0.0 
    - don't install symfony/security-bundle v2.1.11|don't install symfony/symfony v3.0.0 
    - don't install symfony/security-bundle v2.1.12|don't install symfony/symfony v3.0.0 
    - don't install symfony/security-bundle v2.1.13|don't install symfony/symfony v3.0.0 
    - don't install symfony/security-bundle v2.1.2|don't install symfony/symfony v3.0.0 
    - don't install symfony/security-bundle v2.1.3|don't install symfony/symfony v3.0.0 
    - don't install symfony/security-bundle v2.1.4|don't install symfony/symfony v3.0.0 
    - don't install symfony/security-bundle v2.1.5|don't install symfony/symfony v3.0.0 
    - don't install symfony/security-bundle v2.1.6|don't install symfony/symfony v3.0.0 
    - don't install symfony/security-bundle v2.1.7|don't install symfony/symfony v3.0.0 
    - don't install symfony/security-bundle v2.1.8|don't install symfony/symfony v3.0.0 
    - don't install symfony/security-bundle v2.1.9|don't install symfony/symfony v3.0.0 
    - don't install symfony/security-bundle v2.2.0|don't install symfony/symfony v3.0.0 
    - don't install symfony/security-bundle v2.2.1|don't install symfony/symfony v3.0.0 
    - don't install symfony/security-bundle v2.2.10|don't install symfony/symfony v3.0.0 
    - don't install symfony/security-bundle v2.2.11|don't install symfony/symfony v3.0.0 
    - don't install symfony/security-bundle v2.2.2|don't install symfony/symfony v3.0.0 
    - don't install symfony/security-bundle v2.2.3|don't install symfony/symfony v3.0.0 
    - don't install symfony/security-bundle v2.2.4|don't install symfony/symfony v3.0.0 
    - don't install symfony/security-bundle v2.2.5|don't install symfony/symfony v3.0.0 
    - don't install symfony/security-bundle v2.2.6|don't install symfony/symfony v3.0.0 
    - don't install symfony/security-bundle v2.2.7|don't install symfony/symfony v3.0.0 
    - don't install symfony/security-bundle v2.2.8|don't install symfony/symfony v3.0.0 
    - don't install symfony/security-bundle v2.2.9|don't install symfony/symfony v3.0.0 
    - don't install symfony/security-bundle v2.3.0|don't install symfony/symfony v3.0.0 
    - don't install symfony/security-bundle v2.3.1|don't install symfony/symfony v3.0.0 
    - don't install symfony/security-bundle v2.3.10|don't install symfony/symfony v3.0.0 
    - don't install symfony/security-bundle v2.3.11|don't install symfony/symfony v3.0.0 
    - don't install symfony/security-bundle v2.3.12|don't install symfony/symfony v3.0.0 
    - don't install symfony/security-bundle v2.3.13|don't install symfony/symfony v3.0.0 
    - don't install symfony/security-bundle v2.3.14|don't install symfony/symfony v3.0.0 
    - don't install symfony/security-bundle v2.3.15|don't install symfony/symfony v3.0.0 
    - don't install symfony/security-bundle v2.3.16|don't install symfony/symfony v3.0.0 
    - don't install symfony/security-bundle v2.3.17|don't install symfony/symfony v3.0.0 
    - don't install symfony/security-bundle v2.3.18|don't install symfony/symfony v3.0.0 
    - don't install symfony/security-bundle v2.3.19|don't install symfony/symfony v3.0.0 
    - don't install symfony/security-bundle v2.3.2|don't install symfony/symfony v3.0.0 
    - don't install symfony/security-bundle v2.3.20|don't install symfony/symfony v3.0.0 
    - don't install symfony/security-bundle v2.3.21|don't install symfony/symfony v3.0.0 
    - don't install symfony/security-bundle v2.3.22|don't install symfony/symfony v3.0.0 
    - don't install symfony/security-bundle v2.3.23|don't install symfony/symfony v3.0.0 
    - don't install symfony/security-bundle v2.3.24|don't install symfony/symfony v3.0.0 
    - don't install symfony/security-bundle v2.3.25|don't install symfony/symfony v3.0.0 
    - don't install symfony/security-bundle v2.3.26|don't install symfony/symfony v3.0.0 
    - don't install symfony/security-bundle v2.3.27|don't install symfony/symfony v3.0.0 
    - don't install symfony/security-bundle v2.3.28|don't install symfony/symfony v3.0.0 
    - don't install symfony/security-bundle v2.3.29|don't install symfony/symfony v3.0.0 
    - don't install symfony/security-bundle v2.3.3|don't install symfony/symfony v3.0.0 
    - don't install symfony/security-bundle v2.3.30|don't install symfony/symfony v3.0.0 
    - don't install symfony/security-bundle v2.3.31|don't install symfony/symfony v3.0.0 
    - don't install symfony/security-bundle v2.3.32|don't install symfony/symfony v3.0.0 
    - don't install symfony/security-bundle v2.3.33|don't install symfony/symfony v3.0.0 
    - don't install symfony/security-bundle v2.3.34|don't install symfony/symfony v3.0.0 
    - don't install symfony/security-bundle v2.3.35|don't install symfony/symfony v3.0.0 
    - don't install symfony/security-bundle v2.3.4|don't install symfony/symfony v3.0.0 
    - don't install symfony/security-bundle v2.3.5|don't install symfony/symfony v3.0.0 
    - don't install symfony/security-bundle v2.3.6|don't install symfony/symfony v3.0.0 
    - don't install symfony/security-bundle v2.3.7|don't install symfony/symfony v3.0.0 
    - don't install symfony/security-bundle v2.3.8|don't install symfony/symfony v3.0.0 
    - don't install symfony/security-bundle v2.3.9|don't install symfony/symfony v3.0.0 
    - don't install symfony/security-bundle v2.4.0|don't install symfony/symfony v3.0.0 
    - don't install symfony/security-bundle v2.4.1|don't install symfony/symfony v3.0.0 
    - don't install symfony/security-bundle v2.4.10|don't install symfony/symfony v3.0.0 
    - don't install symfony/security-bundle v2.4.2|don't install symfony/symfony v3.0.0 
    - don't install symfony/security-bundle v2.4.3|don't install symfony/symfony v3.0.0 
    - don't install symfony/security-bundle v2.4.4|don't install symfony/symfony v3.0.0 
    - don't install symfony/security-bundle v2.4.5|don't install symfony/symfony v3.0.0 
    - don't install symfony/security-bundle v2.4.6|don't install symfony/symfony v3.0.0 
    - don't install symfony/security-bundle v2.4.7|don't install symfony/symfony v3.0.0 
    - don't install symfony/security-bundle v2.4.8|don't install symfony/symfony v3.0.0 
    - don't install symfony/security-bundle v2.4.9|don't install symfony/symfony v3.0.0 
    - don't install symfony/security-bundle v2.5.0|don't install symfony/symfony v3.0.0 
    - don't install symfony/security-bundle v2.5.1|don't install symfony/symfony v3.0.0 
    - don't install symfony/security-bundle v2.5.10|don't install symfony/symfony v3.0.0 
    - don't install symfony/security-bundle v2.5.11|don't install symfony/symfony v3.0.0 
    - don't install symfony/security-bundle v2.5.12|don't install symfony/symfony v3.0.0 
    - don't install symfony/security-bundle v2.5.2|don't install symfony/symfony v3.0.0 
    - don't install symfony/security-bundle v2.5.3|don't install symfony/symfony v3.0.0 
    - don't install symfony/security-bundle v2.5.4|don't install symfony/symfony v3.0.0 
    - don't install symfony/security-bundle v2.5.5|don't install symfony/symfony v3.0.0 
    - don't install symfony/security-bundle v2.5.6|don't install symfony/symfony v3.0.0 
    - don't install symfony/security-bundle v2.5.7|don't install symfony/symfony v3.0.0 
    - don't install symfony/security-bundle v2.5.8|don't install symfony/symfony v3.0.0 
    - don't install symfony/security-bundle v2.5.9|don't install symfony/symfony v3.0.0 
    - don't install symfony/security-bundle v2.6.0|don't install symfony/symfony v3.0.0 
    - don't install symfony/security-bundle v2.6.1|don't install symfony/symfony v3.0.0 
    - don't install symfony/security-bundle v2.6.10|don't install symfony/symfony v3.0.0 
    - don't install symfony/security-bundle v2.6.11|don't install symfony/symfony v3.0.0 
    - don't install symfony/security-bundle v2.6.12|don't install symfony/symfony v3.0.0 
    - don't install symfony/security-bundle v2.6.2|don't install symfony/symfony v3.0.0 
    - don't install symfony/security-bundle v2.6.3|don't install symfony/symfony v3.0.0 
    - don't install symfony/security-bundle v2.6.4|don't install symfony/symfony v3.0.0 
    - don't install symfony/security-bundle v2.6.5|don't install symfony/symfony v3.0.0 
    - don't install symfony/security-bundle v2.6.6|don't install symfony/symfony v3.0.0 
    - don't install symfony/security-bundle v2.6.7|don't install symfony/symfony v3.0.0 
    - don't install symfony/security-bundle v2.6.8|don't install symfony/symfony v3.0.0 
    - don't install symfony/security-bundle v2.6.9|don't install symfony/symfony v3.0.0 
    - don't install symfony/security-bundle v2.7.0|don't install symfony/symfony v3.0.0 
    - don't install symfony/security-bundle v2.7.1|don't install symfony/symfony v3.0.0 
    - don't install symfony/security-bundle v2.7.2|don't install symfony/symfony v3.0.0 
    - don't install symfony/security-bundle v2.7.3|don't install symfony/symfony v3.0.0 
    - don't install symfony/security-bundle v2.7.4|don't install symfony/symfony v3.0.0 
    - don't install symfony/security-bundle v2.7.5|don't install symfony/symfony v3.0.0 
    - don't install symfony/security-bundle v2.7.6|don't install symfony/symfony v3.0.0 
    - don't install symfony/security-bundle v2.7.7|don't install symfony/symfony v3.0.0 
    - don't install symfony/security-bundle v2.8.0|don't install symfony/symfony v3.0.0 
    - Installation request for symfony/symfony 3.0.* -> satisfiable by symfony/symfony[v3.0.0]. 
    - Installation request for friendsofsymfony/user-bundle ^1.3 -> satisfiable by friendsofsymfony/user-bundle[v1.3.0, v1.3.1, v1.3.2, v1.3.3, v1.3.4, v1.3.5, v1.3.6]. 
+0

沒有。 https://github.com/FriendsOfSymfony/FOSUserBundle/issues/1996。儘管FOSUserBundle是迄今爲止使用最多的軟件包,但它基本上沒有以任何有用的方式保持最新。 – Cerad

+0

感謝您的回答 – Karolis

+0

在引用評論中談到兼容性:**在master分支中現在兼容Symfony **你可以用''dev-master''版本試試 – Matteo

回答

31

目前,沒有支持的新框架版本標記的版本(正式版),順便說一句,在this github issue說, :

在master分支現在兼容symfony。

所以用這個作曲家配置嘗試

friendsofsymfony/user-bundle: "dev-master" 

希望這有助於

+1

請記住,您可能沒有在現有應用程序中使用主分支。您可能正在使用與未發佈的主分支不兼容的較早版本。所以,即使它加載它可能不起作用。 – Cerad

+0

謝謝@Cerad!當然!只是一個臨時解決方案。我會更新我的答案何時會發佈一個穩定版本 – Matteo

+5

我的觀點是,現有的應用程序使用V1.3。開發分支是2.0。 2.0從來沒有被釋放(除了alpha),並且與1.3非常不同。所以切換到開發分支的現有應用程序可能無法工作。即使他們這樣做了,那麼應用程序依賴於不穩定的代碼。代碼已經工作了3年以上,沒有被釋放。沒有目標發佈日期。 – Cerad

6

此命令的Symfony 3.2.1爲我工作:

composer require friendsofsymfony/user-bundle "[email protected]" 
0

編輯我composer.json到包括

"friendsofsymfony/user-bundle": "^2.0.0" 

,然後運行

composer update 

找到這個packagist page

最終結果(安裝包的)後,工作對我來說是一樣的,在我看來,需求語句看起來/感覺更好的我項目不是開發分支。