Cannot install DoctrineMigrationsBundle via composer(无法通过 composer 安装 DoctrineMigrationsBundle)
问题描述
Project uses Symfony 2.8.2, PHP version is 5.6
I'm trying to install DoctrineMigrationsBundle and composer fails with error:
Problem 1
- doctrine/doctrine-migrations-bundle 1.0.0 requires doctrine/migrations ~1.0@dev -> satisfiable by doctrine/migrations[v1.0.0, v1.1.0, v1.2.0, v1.2.1, v1.2.2, v1.3.0].
- doctrine/doctrine-migrations-bundle 1.0.1 requires doctrine/migrations ~1.0@dev -> satisfiable by doctrine/migrations[v1.0.0, v1.1.0, v1.2.0, v1.2.1, v1.2.2, v1.3.0].
- doctrine/doctrine-migrations-bundle 1.1.1 requires doctrine/migrations ~1.0 -> satisfiable by doctrine/migrations[v1.0.0, v1.1.0, v1.2.0, v1.2.1, v1.2.2, v1.3.0].
- doctrine/doctrine-migrations-bundle v1.1.0 requires doctrine/migrations ~1.0 -> satisfiable by doctrine/migrations[v1.0.0, v1.1.0, v1.2.0, v1.2.1, v1.2.2, v1.3.0].
- doctrine/migrations v1.3.0 requires php ^5.5|^7.0 -> your PHP version (5.5.28) or "config.platform.php" value does not satisfy that requirement.
- doctrine/migrations v1.2.2 requires php >=5.4.0 -> your PHP version (5.5.28) or "config.platform.php" value does not satisfy that requirement.
- doctrine/migrations v1.2.1 requires php >=5.4.0 -> your PHP version (5.5.28) or "config.platform.php" value does not satisfy that requirement.
- doctrine/migrations v1.2.0 requires php >=5.4.0 -> your PHP version (5.5.28) or "config.platform.php" value does not satisfy that requirement.
- doctrine/migrations v1.1.0 requires php >=5.4.0 -> your PHP version (5.5.28) or "config.platform.php" value does not satisfy that requirement.
- doctrine/migrations v1.0.0 requires php >=5.4.0 -> your PHP version (5.5.28) or "config.platform.php" value does not satisfy that requirement.
- Installation request for doctrine/doctrine-migrations-bundle ^1.0 -> satisfiable by doctrine/doctrine-migrations-bundle[1.0.0, 1.0.1, 1.1.1, v1.1.0].
My composer.json 'require' block:
"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",
"incenteev/composer-parameter-handler": "~2.0",
"sensio/generator-bundle": "~2.3",
"friendsofsymfony/user-bundle": "~2.0@dev",
"sonata-project/admin-bundle": "2.3.*",
"sonata-project/doctrine-orm-admin-bundle": "2.3.*",
"stof/doctrine-extensions-bundle": "^1.2"
},
Whats wrong with my config? I tried to rollback to sf2.3 but still the same errors on bundle install
In your composer.json you should have the following :
"config": {
"platform": {
"php": "5.3.9"
},
"bin-dir": "bin"
},
Just change it to :
"config": {
"bin-dir": "bin"
},
And it should work.
这篇关于无法通过 composer 安装 DoctrineMigrationsBundle的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:无法通过 composer 安装 DoctrineMigrationsBundle
基础教程推荐
- 通过 PHP SoapClient 请求发送原始 XML 2021-01-01
- mysqli_insert_id 是否有可能在高流量应用程序中返回 2021-01-01
- 超薄框架REST服务两次获得输出 2022-01-01
- Libpuzzle 索引数百万张图片? 2022-01-01
- 在 PHP 中强制下载文件 - 在 Joomla 框架内 2022-01-01
- 在多维数组中查找最大值 2021-01-01
- WooCommerce 中选定产品类别的自定义产品价格后缀 2021-01-01
- XAMPP 服务器不加载 CSS 文件 2022-01-01
- 如何在 PHP 中的请求之间持久化对象 2022-01-01
- 在 Woocommerce 中根据运输方式和付款方式添加费用 2021-01-01