Install symfony/maker-bundle



我正在处理用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

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

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

最新更新