由作曲家更新奏鸣曲管理员



我正在尝试使用作曲家更新奏鸣曲管理员,但我有此错误

Problem 1
- Installation request for sonata-project/admin-bundle dev-master -> satisfiable by sonata-project/admin-bundle[dev-master].
- sonata-project/user-bundle 2.2.x-dev requires sonata-project/admin-bundle ~2.2,>=2.2.9 -> satisfiable by sonata-project/admin-bundle[2.2.x-dev, 2.3.x-dev].
- Can only install one of: sonata-project/admin-bundle[dev-master, 2.2.x-dev].
- Can only install one of: sonata-project/admin-bundle[dev-master, 2.3.x-dev].
- Installation request for sonata-project/user-bundle 2.2.x-dev -> satisfiable by sonata-project/user-bundle[2.2.x-dev].

这是我composer.json的样本:

"require": {
    "php": ">=5.3.9",
    "symfony/symfony": "2.8.*",
    "doctrine/orm": "^2.4.8",
    "doctrine/doctrine-bundle": "~1.4",
    "symfony/swiftmailer-bundle": "~2.3",
    "symfony/monolog-bundle": "~2.4",
    "sensio/distribution-bundle": "~5.0",
    "sensio/framework-extra-bundle": "^3.0.2",
    "sensio/generator-bundle": "dev-master",
    "incenteev/composer-parameter-handler": "~2.0",
    "sonata-project/admin-bundle": "dev-master",
    "sonata-project/doctrine-orm-admin-bundle": "dev-master",
    "sonata-project/user-bundle": "2.2.x-dev"
},

我正在使用这个命令:

composer update

你应该继续 packagist 查看要求。

您的错误消息说您应该选择要使用的版本,因为user-bundle 2.2需要sonata-admin v2.2

在阅读包装师时,我可以看到userbundle 2.3对你的sonata-admin v2.3没问题

我认为您只需要将user-bundle2.2更新为2.3

或者,也许对于未来来说更安全,修复您的软件包版本而不是使用 dev-master .
如果有更新,它会像现在一样破坏一切。

"require": {
    "php": ">=5.3.9",
    "symfony/symfony": "2.8.*",
    "doctrine/orm": "^2.4.8",
    "doctrine/doctrine-bundle": "~1.4",
    "symfony/swiftmailer-bundle": "~2.3",
    "symfony/monolog-bundle": "~2.4",
    "sensio/distribution-bundle": "~5.0",
    "sensio/framework-extra-bundle": "^3.0.2",
    "sensio/generator-bundle": "dev-master",
    "incenteev/composer-parameter-handler": "~2.0",
    "sonata-project/admin-bundle": "dev-master", // Actually 2.3
    "sonata-project/doctrine-orm-admin-bundle": "dev-master", 
    "sonata-project/user-bundle": "2.3.x-dev"    // <----- HERE
},

相关内容

  • 没有找到相关文章

最新更新