索纳塔从2.3升级到3.0



我有一个已经运行了几年的Symfony+SonataAdmin项目。我想将其升级到SonataAdmin3.x.3.0将是一个良好的开端,然后在我们检查一切正常后升级到3.x。

然而,我似乎无法获得一组可行的composer依赖项进行升级。当前设置包括:

    "sonata-project/admin-bundle": "~2.3",
    "sonata-project/core-bundle": "~2.3",
    "sonata-project/doctrine-orm-admin-bundle": "~2.3",
    "sonata-project/user-bundle": "~2.3@dev",
    "sonata-project/datagrid-bundle": "~2.2@dev",
    "friendsofsymfony/user-bundle": "~1.3",

我试着将前三个改为3.0。*但我得到了以下错误:

$composer更新--试运行

使用包信息加载composer存储库

更新依赖项(包括require-dev)

无法将您的要求解析为一组可安装的程序包。

问题1

- sonata-project/user-bundle 2.x-dev requires sonata-project/core-bundle ~2.2 -> satisfiable by sonata-project/core-bundle[2.2.0-2.2.7, 2.3.0-2.3.11, 2.x-dev] but these conflict with your requirements or minimum-stability.
- sonata-project/user-bundle 2.3.x-dev requires sonata-project/admin-bundle ~2.3|~2.4@dev -> satisfiable by sonata-project/admin-bundle[2.3.0-2.3.10, 2.x-dev] but these conflict with your requirements or minimum-stability.
- Installation request for sonata-project/user-bundle ~2.3@dev -> satisfiable by sonata-project/user-bundle[2.x-dev, 2.3.x-dev].

将用户捆绑包的依赖关系更改为:

"sonata-project/user-bundle": "3.0.*@dev",

3.0.*@dev、或3.0.03.0.0@dev:

只是给出了一个不同的错误:

$composer更新--试运行

使用包信息加载composer存储库

更新依赖项(包括require-dev)

[Composer\DependencyResolver\SolverProbemsException]

Problem 1
  - The requested package sonata-project/user-bundle 3.0.* exists as sonata-project/user-bundle[2.3.x-dev, dev-master] but these are rejected by your constraint.

最后,尝试"sonata-project/user-bundle": "dev-master",会出现以下错误:

$composer更新--试运行

使用包信息加载composer存储库

更新依赖项(包括require-dev)

无法将您的要求解析为一组可安装的程序包。

问题1

- sonata-project/user-bundle dev-master requires sonata-project/admin-bundle ^3.1 -> satisfiable by sonata-project/admin-bundle[3.1.0, 3.2.0, 3.3.0, 3.3.1, 3.3.2, 3.4.0, 3.x-dev] but these conflict with your requirements or minimum-stability.
- sonata-project/user-bundle dev-master requires sonata-project/admin-bundle ^3.1 -> satisfiable by sonata-project/admin-bundle[3.1.0, 3.2.0, 3.3.0, 3.3.1, 3.3.2, 3.4.0, 3.x-dev] but these conflict with your requirements or minimum-stability.
- Installation request for sonata-project/user-bundle dev-master -> satisfiable by sonata-project/user-bundle[dev-master].

所以。。。有什么版本的sonata-project/user-bundle与其他索纳塔软件包的3.0.*版本兼容吗?Packagist似乎建议有一个3.0.0版本的sonata-project/user-bundle,但我在尝试引用它时,是否在我的composer语法中做错了什么?

轻松实现目标的规则:

  • 使用稳定版本,并且仅
  • 不要太约束自己,你可以稍后再做

以下是我的一个composer.json的摘录:

    "sonata-project/admin-bundle": "^3.0",
    "sonata-project/core-bundle": "^3.0",
    "sonata-project/doctrine-orm-admin-bundle": "^3.0",
    "sonata-project/notification-bundle": "^3.0",
    "sonata-project/user-bundle": "^3.0",

简单而美丽。

相关内容

  • 没有找到相关文章

最新更新