Не удается установить DoctrineMigrationsBundle с Symfony3 с помощью composer

Я довольно новичок в Symfony и решил, что буду следовать их инструкциям (http://symfony.com/doc/current/book/installation.html) установить и настроить новый проект с помощью Symfony.

Я выбрал «Создание приложений Symfony без установщика» и создал новый проект с помощью composer:

composer create-project symfony/framework-standard-edition my_project_name

Я следовал остальным инструкциям к письму и запустил мое приложение. Все идет нормально. Теперь я хотел установить миграцию базы данных, используя DoctrineMigrationsBundle, как они предлагают (http://symfony.com/doc/current/bundles/DoctrineMigrationsBundle/index.html). И вот тут все стало волосатым.

На их странице вверху написано «версия 2.1», альтернативной версии нет. Что, я думаю, означает, что инструкции предназначены для Symfony2.1. В любом случае, я выполнил указанную команду. Я имею в виду, сколько может измениться базовый процесс установки?

composer require doctrine/doctrine-migrations-bundle "^1.0"

Это приводит к целой куче ошибок от композитора, говорящего мне, что он не может удовлетворить требования (см. Ниже) и где я завис. Я попытался установить пару других версий комплекта и других компонентов и погуглил проблему, но ничего не смог найти.

./composer.json has been updated

Загрузка репозиториев композитора с информацией о пакете
Обновление зависимостей (включая require-dev)
Ваши требования не могут быть разрешены для устанавливаемого набора пакетов.

Problem 1
- Conclusion: remove symfony/symfony v3.0.0
- Conclusion: don't install symfony/symfony v3.0.0
- doctrine/doctrine-migrations-bundle 1.0.1 requires doctrine/migrations ~1.0@dev -> satisfiable by doctrine/migrations[v1.0.0, v1.1.0].
- doctrine/doctrine-migrations-bundle 1.1.1 requires doctrine/migrations ~1.0 -> satisfiable by doctrine/migrations[v1.0.0, v1.1.0].
- doctrine/doctrine-migrations-bundle v1.1.0 requires doctrine/migrations ~1.0 -> satisfiable by doctrine/migrations[v1.0.0, v1.1.0].
- doctrine/migrations v1.0.0 requires symfony/console ~2.3 -> satisfiable by symfony/console[v2.3.0, v2.3.1, v2.3.10, v2.3.11, v2.3.12, v2.3.13, v2.3.14, v2.3.15, v2.3.16, v2.3.17, v2.3.18, v2.3.19, v2.3.2, v2.3.20, v2.3.21, v2.3.22, v2.3.23, v2.3.24, v2.3.25, v2.3.26, v2.3.27, v2.3.28, v2.3.29, v2.3.3, v2.3.30, v2.3.31, v2.3.32, v2.3.33, v2.3.34, v2.3.35, v2.3.4, v2.3.5, v2.3.6, v2.3.7, v2.3.8, v2.3.9, v2.4.0, v2.4.1, v2.4.10, v2.4.2, v2.4.3, v2.4.4, v2.4.5, v2.4.6, v2.4.7, v2.4.8, v2.4.9, v2.5.0, v2.5.1, v2.5.10, v2.5.11, v2.5.12, v2.5.2, v2.5.3, v2.5.4, v2.5.5, v2.5.6, v2.5.7, v2.5.8, v2.5.9, v2.6.0, v2.6.1, v2.6.10, v2.6.11, v2.6.12, v2.6.2, v2.6.3, v2.6.4, v2.6.5, v2.6.6, v2.6.7, v2.6.8, v2.6.9, v2.7.0, v2.7.1, v2.7.2, v2.7.3, v2.7.4, v2.7.5, v2.7.6, v2.7.7, v2.8.0].
- doctrine/migrations v1.1.0 requires symfony/console ~2.3 -> satisfiable by symfony/console[v2.3.0, v2.3.1, v2.3.10, v2.3.11, v2.3.12, v2.3.13, v2.3.14, v2.3.15, v2.3.16, v2.3.17, v2.3.18, v2.3.19, v2.3.2, v2.3.20, v2.3.21, v2.3.22, v2.3.23, v2.3.24, v2.3.25, v2.3.26, v2.3.27, v2.3.28, v2.3.29, v2.3.3, v2.3.30, v2.3.31, v2.3.32, v2.3.33, v2.3.34, v2.3.35, v2.3.4, v2.3.5, v2.3.6, v2.3.7, v2.3.8, v2.3.9, v2.4.0, v2.4.1, v2.4.10, v2.4.2, v2.4.3, v2.4.4, v2.4.5, v2.4.6, v2.4.7, v2.4.8, v2.4.9, v2.5.0, v2.5.1, v2.5.10, v2.5.11, v2.5.12, v2.5.2, v2.5.3, v2.5.4, v2.5.5, v2.5.6, v2.5.7, v2.5.8, v2.5.9, v2.6.0, v2.6.1, v2.6.10, v2.6.11, v2.6.12, v2.6.2, v2.6.3, v2.6.4, v2.6.5, v2.6.6, v2.6.7, v2.6.8, v2.6.9, v2.7.0, v2.7.1, v2.7.2, v2.7.3, v2.7.4, v2.7.5, v2.7.6, v2.7.7, v2.8.0].
- doctrine/doctrine-migrations-bundle 1.0.0 requires symfony/framework-bundle ~2.1 -> satisfiable by symfony/framework-bundle[v2.1.0, v2.1.1, v2.1.10, v2.1.11, v2.1.12, v2.1.13, v2.1.2, v2.1.3, v2.1.4, v2.1.5, v2.1.6, v2.1.7, v2.1.8, v2.1.9, v2.2.0, v2.2.1, v2.2.10, v2.2.11, v2.2.2, v2.2.3, v2.2.4, v2.2.5, v2.2.6, v2.2.7, v2.2.8, v2.2.9, v2.3.0, v2.3.1, v2.3.10, v2.3.11, v2.3.12, v2.3.13, v2.3.14, v2.3.15, v2.3.16, v2.3.17, v2.3.18, v2.3.19, v2.3.2, v2.3.20, v2.3.21, v2.3.22, v2.3.23, v2.3.24, v2.3.25, v2.3.26, v2.3.27, v2.3.28, v2.3.29, v2.3.3, v2.3.30, v2.3.31, v2.3.32, v2.3.33, v2.3.34, v2.3.35, v2.3.4, v2.3.5, v2.3.6, v2.3.7, v2.3.8, v2.3.9, v2.4.0, v2.4.1, v2.4.10, v2.4.2, v2.4.3, v2.4.4, v2.4.5, v2.4.6, v2.4.7, v2.4.8, v2.4.9, v2.5.0, v2.5.1, v2.5.10, v2.5.11, v2.5.12, v2.5.2, v2.5.3, v2.5.4, v2.5.5, v2.5.6, v2.5.7, v2.5.8, v2.5.9, v2.6.0, v2.6.1, v2.6.10, v2.6.11, v2.6.12, v2.6.2, v2.6.3, v2.6.4, v2.6.5, v2.6.6, v2.6.7, v2.6.8, v2.6.9, v2.7.0, v2.7.1, v2.7.2, v2.7.3, v2.7.4, v2.7.5, v2.7.6, v2.7.7, v2.8.0].
- don't install symfony/console v2.5.0|don't install symfony/symfony v3.0.0
- don't install symfony/console v2.5.1|don't install symfony/symfony v3.0.0
- don't install symfony/console v2.5.10|don't install symfony/symfony v3.0.0
- don't install symfony/console v2.5.11|don't install symfony/symfony v3.0.0
- don't install symfony/console v2.5.12|don't install symfony/symfony v3.0.0
- don't install symfony/console v2.5.2|don't install symfony/symfony v3.0.0
- don't install symfony/console v2.5.3|don't install symfony/symfony v3.0.0
- don't install symfony/console v2.5.4|don't install symfony/symfony v3.0.0
- don't install symfony/console v2.5.5|don't install symfony/symfony v3.0.0
- don't install symfony/console v2.5.6|don't install symfony/symfony v3.0.0
- don't install symfony/console v2.5.7|don't install symfony/symfony v3.0.0
- don't install symfony/console v2.5.8|don't install symfony/symfony v3.0.0
- don't install symfony/console v2.5.9|don't install symfony/symfony v3.0.0
- don't install symfony/console v2.6.0|don't install symfony/symfony v3.0.0
- don't install symfony/console v2.6.1|don't install symfony/symfony v3.0.0
- don't install symfony/console v2.6.10|don't install symfony/symfony v3.0.0
- don't install symfony/console v2.6.11|don't install symfony/symfony v3.0.0
- don't install symfony/console v2.6.12|don't install symfony/symfony v3.0.0
- don't install symfony/console v2.6.2|don't install symfony/symfony v3.0.0
- don't install symfony/console v2.6.3|don't install symfony/symfony v3.0.0
- don't install symfony/console v2.6.4|don't install symfony/symfony v3.0.0
- don't install symfony/console v2.6.5|don't install symfony/symfony v3.0.0
- don't install symfony/console v2.6.6|don't install symfony/symfony v3.0.0
- don't install symfony/console v2.6.7|don't install symfony/symfony v3.0.0
- don't install symfony/console v2.6.8|don't install symfony/symfony v3.0.0
- don't install symfony/console v2.6.9|don't install symfony/symfony v3.0.0
- don't install symfony/console v2.7.0|don't install symfony/symfony v3.0.0
- don't install symfony/console v2.7.1|don't install symfony/symfony v3.0.0
- don't install symfony/console v2.7.2|don't install symfony/symfony v3.0.0
- don't install symfony/console v2.7.3|don't install symfony/symfony v3.0.0
- don't install symfony/console v2.7.4|don't install symfony/symfony v3.0.0
- don't install symfony/console v2.7.5|don't install symfony/symfony v3.0.0
- don't install symfony/console v2.7.6|don't install symfony/symfony v3.0.0
- don't install symfony/console v2.7.7|don't install symfony/symfony v3.0.0
- don't install symfony/console v2.8.0|don't install symfony/symfony v3.0.0
- don't install symfony/console v2.3.0|don't install symfony/symfony v3.0.0
- don't install symfony/console v2.3.1|don't install symfony/symfony v3.0.0
- don't install symfony/console v2.3.10|don't install symfony/symfony v3.0.0
- don't install symfony/console v2.3.11|don't install symfony/symfony v3.0.0
- don't install symfony/console v2.3.12|don't install symfony/symfony v3.0.0
- don't install symfony/console v2.3.13|don't install symfony/symfony v3.0.0
- don't install symfony/console v2.3.14|don't install symfony/symfony v3.0.0
- don't install symfony/console v2.3.15|don't install symfony/symfony v3.0.0
- don't install symfony/console v2.3.16|don't install symfony/symfony v3.0.0
- don't install symfony/console v2.3.17|don't install symfony/symfony v3.0.0
- don't install symfony/console v2.3.18|don't install symfony/symfony v3.0.0
- don't install symfony/console v2.3.19|don't install symfony/symfony v3.0.0
- don't install symfony/console v2.3.2|don't install symfony/symfony v3.0.0
- don't install symfony/console v2.3.20|don't install symfony/symfony v3.0.0
- don't install symfony/console v2.3.21|don't install symfony/symfony v3.0.0
- don't install symfony/console v2.3.22|don't install symfony/symfony v3.0.0
- don't install symfony/console v2.3.23|don't install symfony/symfony v3.0.0
- don't install symfony/console v2.3.24|don't install symfony/symfony v3.0.0
- don't install symfony/console v2.3.25|don't install symfony/symfony v3.0.0
- don't install symfony/console v2.3.26|don't install symfony/symfony v3.0.0
- don't install symfony/console v2.3.27|don't install symfony/symfony v3.0.0
- don't install symfony/console v2.3.28|don't install symfony/symfony v3.0.0
- don't install symfony/console v2.3.29|don't install symfony/symfony v3.0.0
- don't install symfony/console v2.3.3|don't install symfony/symfony v3.0.0
- don't install symfony/console v2.3.30|don't install symfony/symfony v3.0.0
- don't install symfony/console v2.3.31|don't install symfony/symfony v3.0.0
- don't install symfony/console v2.3.32|don't install symfony/symfony v3.0.0
- don't install symfony/console v2.3.33|don't install symfony/symfony v3.0.0
- don't install symfony/console v2.3.34|don't install symfony/symfony v3.0.0
- don't install symfony/console v2.3.35|don't install symfony/symfony v3.0.0
- don't install symfony/console v2.3.4|don't install symfony/symfony v3.0.0
- don't install symfony/console v2.3.5|don't install symfony/symfony v3.0.0
- don't install symfony/console v2.3.6|don't install symfony/symfony v3.0.0
- don't install symfony/console v2.3.7|don't install symfony/symfony v3.0.0
- don't install symfony/console v2.3.8|don't install symfony/symfony v3.0.0
- don't install symfony/console v2.3.9|don't install symfony/symfony v3.0.0
- don't install symfony/console v2.4.0|don't install symfony/symfony v3.0.0
- don't install symfony/console v2.4.1|don't install symfony/symfony v3.0.0
- don't install symfony/console v2.4.10|don't install symfony/symfony v3.0.0
- don't install symfony/console v2.4.2|don't install symfony/symfony v3.0.0
- don't install symfony/console v2.4.3|don't install symfony/symfony v3.0.0
- don't install symfony/console v2.4.4|don't install symfony/symfony v3.0.0
- don't install symfony/console v2.4.5|don't install symfony/symfony v3.0.0
- don't install symfony/console v2.4.6|don't install symfony/symfony v3.0.0
- don't install symfony/console v2.4.7|don't install symfony/symfony v3.0.0
- don't install symfony/console v2.4.8|don't install symfony/symfony v3.0.0
- don't install symfony/console v2.4.9|don't install symfony/symfony v3.0.0
- don't install symfony/framework-bundle v2.3.0|don't install symfony/symfony v3.0.0
- don't install symfony/framework-bundle v2.3.1|don't install symfony/symfony v3.0.0
- don't install symfony/framework-bundle v2.3.10|don't install symfony/symfony v3.0.0
- don't install symfony/framework-bundle v2.3.11|don't install symfony/symfony v3.0.0
- don't install symfony/framework-bundle v2.3.12|don't install symfony/symfony v3.0.0
- don't install symfony/framework-bundle v2.3.13|don't install symfony/symfony v3.0.0
- don't install symfony/framework-bundle v2.3.14|don't install symfony/symfony v3.0.0
- don't install symfony/framework-bundle v2.3.15|don't install symfony/symfony v3.0.0
- don't install symfony/framework-bundle v2.3.16|don't install symfony/symfony v3.0.0
- don't install symfony/framework-bundle v2.3.17|don't install symfony/symfony v3.0.0
- don't install symfony/framework-bundle v2.3.18|don't install symfony/symfony v3.0.0
- don't install symfony/framework-bundle v2.3.19|don't install symfony/symfony v3.0.0
- don't install symfony/framework-bundle v2.3.2|don't install symfony/symfony v3.0.0
- don't install symfony/framework-bundle v2.3.20|don't install symfony/symfony v3.0.0
- don't install symfony/framework-bundle v2.3.21|don't install symfony/symfony v3.0.0
- don't install symfony/framework-bundle v2.3.22|don't install symfony/symfony v3.0.0
- don't install symfony/framework-bundle v2.3.23|don't install symfony/symfony v3.0.0
- don't install symfony/framework-bundle v2.3.24|don't install symfony/symfony v3.0.0
- don't install symfony/framework-bundle v2.3.25|don't install symfony/symfony v3.0.0
- don't install symfony/framework-bundle v2.3.26|don't install symfony/symfony v3.0.0
- don't install symfony/framework-bundle v2.3.27|don't install symfony/symfony v3.0.0
- don't install symfony/framework-bundle v2.3.28|don't install symfony/symfony v3.0.0
- don't install symfony/framework-bundle v2.3.29|don't install symfony/symfony v3.0.0
- don't install symfony/framework-bundle v2.3.3|don't install symfony/symfony v3.0.0
- don't install symfony/framework-bundle v2.3.30|don't install symfony/symfony v3.0.0
- don't install symfony/framework-bundle v2.3.31|don't install symfony/symfony v3.0.0
- don't install symfony/framework-bundle v2.3.32|don't install symfony/symfony v3.0.0
- don't install symfony/framework-bundle v2.3.33|don't install symfony/symfony v3.0.0
- don't install symfony/framework-bundle v2.3.34|don't install symfony/symfony v3.0.0
- don't install symfony/framework-bundle v2.3.35|don't install symfony/symfony v3.0.0
- don't install symfony/framework-bundle v2.3.4|don't install symfony/symfony v3.0.0
- don't install symfony/framework-bundle v2.3.5|don't install symfony/symfony v3.0.0
- don't install symfony/framework-bundle v2.3.6|don't install symfony/symfony v3.0.0
- don't install symfony/framework-bundle v2.3.7|don't install symfony/symfony v3.0.0
- don't install symfony/framework-bundle v2.3.8|don't install symfony/symfony v3.0.0
- don't install symfony/framework-bundle v2.3.9|don't install symfony/symfony v3.0.0
- don't install symfony/framework-bundle v2.4.0|don't install symfony/symfony v3.0.0
- don't install symfony/framework-bundle v2.4.1|don't install symfony/symfony v3.0.0
- don't install symfony/framework-bundle v2.4.10|don't install symfony/symfony v3.0.0
- don't install symfony/framework-bundle v2.4.2|don't install symfony/symfony v3.0.0
- don't install symfony/framework-bundle v2.4.3|don't install symfony/symfony v3.0.0
- don't install symfony/framework-bundle v2.4.4|don't install symfony/symfony v3.0.0
- don't install symfony/framework-bundle v2.4.5|don't install symfony/symfony v3.0.0
- don't install symfony/framework-bundle v2.4.6|don't install symfony/symfony v3.0.0
- don't install symfony/framework-bundle v2.4.7|don't install symfony/symfony v3.0.0
- don't install symfony/framework-bundle v2.4.8|don't install symfony/symfony v3.0.0
- don't install symfony/framework-bundle v2.4.9|don't install symfony/symfony v3.0.0
- don't install symfony/framework-bundle v2.5.0|don't install symfony/symfony v3.0.0
- don't install symfony/framework-bundle v2.5.1|don't install symfony/symfony v3.0.0
- don't install symfony/framework-bundle v2.5.10|don't install symfony/symfony v3.0.0
- don't install symfony/framework-bundle v2.5.11|don't install symfony/symfony v3.0.0
- don't install symfony/framework-bundle v2.5.12|don't install symfony/symfony v3.0.0
- don't install symfony/framework-bundle v2.5.2|don't install symfony/symfony v3.0.0
- don't install symfony/framework-bundle v2.5.3|don't install symfony/symfony v3.0.0
- don't install symfony/framework-bundle v2.5.4|don't install symfony/symfony v3.0.0
- don't install symfony/framework-bundle v2.5.5|don't install symfony/symfony v3.0.0
- don't install symfony/framework-bundle v2.5.6|don't install symfony/symfony v3.0.0
- don't install symfony/framework-bundle v2.5.7|don't install symfony/symfony v3.0.0
- don't install symfony/framework-bundle v2.5.8|don't install symfony/symfony v3.0.0
- don't install symfony/framework-bundle v2.5.9|don't install symfony/symfony v3.0.0
- don't install symfony/framework-bundle v2.6.0|don't install symfony/symfony v3.0.0
- don't install symfony/framework-bundle v2.6.1|don't install symfony/symfony v3.0.0
- don't install symfony/framework-bundle v2.6.10|don't install symfony/symfony v3.0.0
- don't install symfony/framework-bundle v2.6.11|don't install symfony/symfony v3.0.0
- don't install symfony/framework-bundle v2.6.12|don't install symfony/symfony v3.0.0
- don't install symfony/framework-bundle v2.6.2|don't install symfony/symfony v3.0.0
- don't install symfony/framework-bundle v2.6.3|don't install symfony/symfony v3.0.0
- don't install symfony/framework-bundle v2.6.4|don't install symfony/symfony v3.0.0
- don't install symfony/framework-bundle v2.6.5|don't install symfony/symfony v3.0.0
- don't install symfony/framework-bundle v2.6.6|don't install symfony/symfony v3.0.0
- don't install symfony/framework-bundle v2.6.7|don't install symfony/symfony v3.0.0
- don't install symfony/framework-bundle v2.6.8|don't install symfony/symfony v3.0.0
- don't install symfony/framework-bundle v2.6.9|don't install symfony/symfony v3.0.0
- don't install symfony/framework-bundle v2.7.0|don't install symfony/symfony v3.0.0
- don't install symfony/framework-bundle v2.7.1|don't install symfony/symfony v3.0.0
- don't install symfony/framework-bundle v2.7.2|don't install symfony/symfony v3.0.0
- don't install symfony/framework-bundle v2.7.3|don't install symfony/symfony v3.0.0
- don't install symfony/framework-bundle v2.7.4|don't install symfony/symfony v3.0.0
- don't install symfony/framework-bundle v2.7.5|don't install symfony/symfony v3.0.0
- don't install symfony/framework-bundle v2.7.6|don't install symfony/symfony v3.0.0
- don't install symfony/framework-bundle v2.7.7|don't install symfony/symfony v3.0.0
- don't install symfony/framework-bundle v2.8.0|don't install symfony/symfony v3.0.0
- don't install symfony/framework-bundle v2.1.0|don't install symfony/symfony v3.0.0
- don't install symfony/framework-bundle v2.1.1|don't install symfony/symfony v3.0.0
- don't install symfony/framework-bundle v2.1.10|don't install symfony/symfony v3.0.0
- don't install symfony/framework-bundle v2.1.11|don't install symfony/symfony v3.0.0
- don't install symfony/framework-bundle v2.1.12|don't install symfony/symfony v3.0.0
- don't install symfony/framework-bundle v2.1.13|don't install symfony/symfony v3.0.0
- don't install symfony/framework-bundle v2.1.2|don't install symfony/symfony v3.0.0
- don't install symfony/framework-bundle v2.1.3|don't install symfony/symfony v3.0.0
- don't install symfony/framework-bundle v2.1.4|don't install symfony/symfony v3.0.0
- don't install symfony/framework-bundle v2.1.5|don't install symfony/symfony v3.0.0
- don't install symfony/framework-bundle v2.1.6|don't install symfony/symfony v3.0.0
- don't install symfony/framework-bundle v2.1.7|don't install symfony/symfony v3.0.0
- don't install symfony/framework-bundle v2.1.8|don't install symfony/symfony v3.0.0
- don't install symfony/framework-bundle v2.1.9|don't install symfony/symfony v3.0.0
- don't install symfony/framework-bundle v2.2.0|don't install symfony/symfony v3.0.0
- don't install symfony/framework-bundle v2.2.1|don't install symfony/symfony v3.0.0
- don't install symfony/framework-bundle v2.2.10|don't install symfony/symfony v3.0.0
- don't install symfony/framework-bundle v2.2.11|don't install symfony/symfony v3.0.0
- don't install symfony/framework-bundle v2.2.2|don't install symfony/symfony v3.0.0
- don't install symfony/framework-bundle v2.2.3|don't install symfony/symfony v3.0.0
- don't install symfony/framework-bundle v2.2.4|don't install symfony/symfony v3.0.0
- don't install symfony/framework-bundle v2.2.5|don't install symfony/symfony v3.0.0
- don't install symfony/framework-bundle v2.2.6|don't install symfony/symfony v3.0.0
- don't install symfony/framework-bundle v2.2.7|don't install symfony/symfony v3.0.0
- don't install symfony/framework-bundle v2.2.8|don't install symfony/symfony v3.0.0
- don't install symfony/framework-bundle v2.2.9|don't install symfony/symfony v3.0.0
- Installation request for symfony/symfony 3.0.* -> satisfiable by symfony/symfony[v3.0.0].
- 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].

Извините за плохой вывод, но ради любви к Богу, я не могу понять, как правильно отформатировать его: /

В любом случае, если бы в любом случае мне удалось направить меня в правильном направлении, как установить DoctrineMigrationsBundle с Symfony3, это было бы здорово.

Может это еще не совместимо?

1

Решение

Миграционный пакет требует Учение / Миграции.

Для миграции доктрин требуются компоненты Symfont 2. * (например, программа чтения yml), см. Последние composer.json

Вы требуете Symfony 3. * Ведьма требует YML Redeader версии 3. *

Конфликт не может быть решен.

Если вы прочитаете вывод, вы увидите то же самое.

3

Другие решения

Версия Dev поддерживает Symfony 3.

добавить в composer.json

в корне:

"minimum-stability": "dev",
"prefer-stable": true,

в require:

"doctrine/doctrine-migrations-bundle": "dev-master"

и беги composer update

3

По вопросам рекламы [email protected]