SonataUserBundle 与 Symfony 3.3.* 兼容吗?

Is SonataUserBundle compatible with Symfony 3.3.*?

我正在使用 Symfony 3.3,我不确定 Sonata User Bundle 是否与 symfony 3.3 兼容,请告诉我任何一个。

我看到有人在讨论与 Symfony 3.3 的兼容性问题,但我不记得看到过明确的回应。有更新吗?

提前致谢

编辑:

我在安装 sonata 用户包后使用 php 5.6 和 symfony 3.3 我收到这些错误:

Your requirements could not be resolved to an installable set of packages.

Problem 1
- sonata-project/user-bundle 3.6.0 requires php ^5.6 || ^7.0 -> your PHP version (5.6.21) overridden by "config.platform.php" version (5.5.9) does not satisfy that requirement.
- sonata-project/user-bundle 3.5.0 requires php ^5.6 || ^7.0 -> your PHP version (5.6.21) overridden by "config.platform.php" version (5.5.9) does not satisfy that requirement.
- sonata-project/user-bundle 3.4.0 requires php ^7.1 -> your PHP version (5.6.21) overridden by "config.platform.php" version (5.5.9) does not satisfy that requirement.
- Conclusion: remove symfony/symfony v3.3.15
- Conclusion: don't install symfony/symfony v3.3.15

我的composer.json文件:

"require": {
    "php": ">=5.5.9",
    "doctrine/doctrine-bundle": "^1.6",
    "doctrine/orm": "^2.5",
    "friendsofsymfony/rest-bundle": "^2.3",
    "incenteev/composer-parameter-handler": "^2.0",
    "nelmio/api-doc-bundle": "^2.13",
    "sensio/distribution-bundle": "^5.0.19",
    "sensio/framework-extra-bundle": "^3.0.2",
    "sonata-project/doctrine-orm-admin-bundle": "^3.1",
    "sonata-project/user-bundle": "^3.3",
    "symfony/monolog-bundle": "^3.1.0",
    "symfony/polyfill-apcu": "^1.0",
    "symfony/swiftmailer-bundle": "^2.3.10",
    "symfony/symfony": "3.3.*",
    "twig/twig": "^1.0||^2.0"
},

我不会移动 php 7.1 或 symfony 2.8。奏鸣曲用户包

中的 php 5.6 和 symfony3.3 有什么办法吗?

随便看看composer.json file in SonataUserBundle

正如您在 link 中看到的那样,这些是要求

"symfony/console": "^2.8 || ^3.2 || ^4.0",
"symfony/form": "^2.8 || ^3.2 || ^4.0",
"symfony/http-foundation": "^2.8 || ^3.2 || ^4.0",
"symfony/security-acl": "^2.8 || ^3.0",
"symfony/security-core": "^2.8 || ^3.2 || ^4.0",
"symfony/translation": "^2.8 || ^3.2 || ^4.0"

所以分支 4.x 适用于 symfony 3.3 whereas branch 3.x isn't

为了将 SonataUserBundle 与 sf3.3 一起使用,您应该更新到此捆绑包的 4.x(如果您尚未使用它)

"config": {"bin-dir": "bin","platform": {"php": "7.1.3"} },

你只需要在composer.json文件

中改变这个东西