【问题标题】:Install symfony/maker-bundle安装 symfony/maker-bundle
【发布时间】:2022-11-08 01:58:11
【问题描述】:

我正在处理使用symfony 3.4 创建并更新为symfony 4.4 的应用程序,我需要将doctrine/inflector 更新为2.^ 版本以安装symfony/make-bundle,其中:

 composer require symfony/maker-bundle --dev

我得到:

  Problem 1
    - Root composer.json requires symfony/maker-bundle ^1.43 -> satisfiable by symfony/maker-bundle[v1.43.0].
    - symfony/maker-bundle v1.43.0 requires doctrine/inflector ^2.0 -> found doctrine/inflector[2.0.0, ..., 2.0.4] but the package is fixed to 1.4.4 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
  Problem 2
    - doctrine/doctrine-cache-bundle 1.4.0 requires doctrine/inflector ^2.0 -> found doctrine/inflector[2.0.0, ..., 2.0.4] but the package is fixed to 1.4.4 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
    - doctrine/doctrine-bundle 1.12.13 requires doctrine/doctrine-cache-bundle ~1.2 -> satisfiable by doctrine/doctrine-cache-bundle[1.4.0].
    - doctrine/doctrine-bundle is locked to version 1.12.13 and an update of this package was not requested.

Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.

然后我尝试了:

 composer require symfony/maker-bundle --dev -W

我尝试删除composer.lock

但我无法安装变形器 v2

【问题讨论】:

  • 我认为您应该将 doctrine/doctrine-bundle 更新到 v2 版本。
  • 您可以尝试创建一个新的 4.4 项目,然后检查 composer.json 中的差异。但是,请确保您将教义/orm 保持在 2.11。 2.12 版本打破了制造商捆绑以及其他东西。

标签: symfony composer-php symfony-4.4


【解决方案1】:

我有同样的问题,您应该尝试使用任何兼容的 maker-bundle 版本

composer require --dev symfony/maker-bundle:*

【讨论】:

    猜你喜欢
    • 2021-04-25
    • 2021-03-25
    • 1970-01-01
    • 2018-04-19
    • 1970-01-01
    • 2019-06-02
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多