我有一个项目,其捆绑包修复了特定的捆绑包或dev-master版本。我想修复这个项目的依赖关系,我决定修复我的大部分捆绑包但我找不到奏鸣曲捆绑版本的良好组合。当我在dev-master版本修复了奏鸣曲包时,我收到了这个错误。
> Problem 1
> - Installation request for sonata-project/doctrine-orm-admin-bundle dev-master -> satisfiable by
> sonata-project/doctrine-orm-admin-bundle[dev-master].
> - sonata-project/user-bundle dev-master conflicts with sonata-project/doctrine-orm-admin-bundle[dev-master].
> - Installation request for sonata-project/user-bundle dev-master -> satisfiable by sonata-project/user-bundle[dev-master].
这是我的作曲家配置:
> "require": {
> "php": ">=5.3.9",
> "symfony/symfony": "2.7.7",
> "doctrine/orm": "2.4.8",
> "doctrine/doctrine-bundle": "1.6.2",
> "symfony/assetic-bundle": "2.8.0",
> "symfony/swiftmailer-bundle": "2.3.11",
> "symfony/monolog-bundle": "2.10.0",
> "sensio/distribution-bundle": "4.0.5",
> "sensio/framework-extra-bundle": "3.0.14",
> "incenteev/composer-parameter-handler": "2.1.2",
> "sonata-project/admin-bundle": "dev-master",
> "sonata-project/doctrine-orm-admin-bundle": "dev-master",
> "sonata-project/user-bundle": "dev-master",
> "sonata-project/easy-extends-bundle": "dev-master",
> "sonata-project/datagrid-bundle": "dev-master",
> "sonata-project/classification-bundle": "dev-master",
> "sonata-project/intl-bundle": "dev-master",
> "sonata-project/media-bundle": "dev-master",
> "jms/serializer-bundle": "1.0.0",
> "jackalope/jackalope-doctrine-dbal": "1.0.*@beta",
> "doctrine/phpcr-odm": "1.2.6",
> "doctrine/phpcr-bundle": "1.2.4",
> "phpcr/phpcr-utils": "1.2.4",
> "sonata-project/formatter-bundle": "2.3.3",
> "knplabs/knp-menu-bundle": "2.1.3",
> "sonata-project/translation-bundle": "1.0.1",
> "stof/doctrine-extensions-bundle": "1.2.2",
> "gedmo/doctrine-extensions": "2.3.9",
> "simplethings/entity-audit-bundle": "0.8",
> "egeloen/ckeditor-bundle": "2.5.2",
> "helios-ag/fm-elfinder-bundle": "5.3",
> "friendsofsymfony/jsrouting-bundle": "1.5.4",
> "sonata-project/jquery-bundle": "1.9.1",
> "floriansemm/solr-bundle": "1.3.1",
> "google/recaptcha": "1.1.2",
> "friendsofsymfony/elastica-bundle": "dev-master",
> "presta/sitemap-bundle": "1.4",
> "liuggio/excelbundle": "2.1.0" },
有什么帮助吗? 抱歉英语!
答案 0 :(得分:2)
composer require sonata-project/admin-bundle sonata-project/doctrine-orm-admin-bundle sonata-project/user-bundle sonata-project/easy-extends-bundle sonata-project/datagrid-bundle sonata-project/classification-bundle sonata-project/intl-bundle sonata-project/media-bundle
另外,如果可以避免,请不要使用dev-master
。它并不意味着它,它意味着当你开发Sonata时。
答案 1 :(得分:0)
经过研究,我发现了捆绑版本的稳定组合: 这是我的composer.json 我希望得到帮助
"require": {
"php": ">=5.3.9",
"symfony/symfony": "2.7.7",
"doctrine/orm": "2.4.8",
"doctrine/doctrine-bundle": "1.6.4",
"symfony/assetic-bundle": "2.6.0",
"symfony/swiftmailer-bundle": "2.4.0",
"symfony/monolog-bundle": "2.12",
"sensio/distribution-bundle": "4.0.12",
"sensio/framework-extra-bundle": "3.0.16",
"incenteev/composer-parameter-handler": "2.1.2",
"sonata-project/admin-bundle": "3.0",
"sonata-project/doctrine-orm-admin-bundle": "3.0.2",
"sonata-project/easy-extends-bundle": "2.1.10",
"sonata-project/user-bundle": "3.0.0",
"sonata-project/datagrid-bundle": "2.2",
"sonata-project/classification-bundle": "3.0.0",
"sonata-project/intl-bundle": "2.2.4",
"sonata-project/media-bundle": "3.0.0",
"jms/serializer-bundle": "1.1.0",
"jackalope/jackalope-doctrine-dbal": "1.2.8",
"doctrine/phpcr-odm": "1.3.0",
"doctrine/phpcr-bundle": "1.2.1",
"phpcr/phpcr-utils": "1.2.9",
"sonata-project/formatter-bundle": "3.0.1",
"knplabs/knp-menu-bundle": "2.1.2",
"sonata-project/translation-bundle": "2.0.2",
"stof/doctrine-extensions-bundle": "1.2.2",
"gedmo/doctrine-extensions": "2.3.9",
"simplethings/entity-audit-bundle": "0.8",
"egeloen/ckeditor-bundle": "4.0.6",
"helios-ag/fm-elfinder-bundle": "5.3",
"friendsofsymfony/jsrouting-bundle": "1.5.4",
"sonata-project/jquery-bundle": "1.10.2",
"floriansemm/solr-bundle": "1.3.1",
"google/recaptcha": "1.1.2",
"friendsofsymfony/elastica-bundle": "3.2.1",
"presta/sitemap-bundle": "1.4.1",
"arodiss/xls-bundle": "0.5.9",
"akeneo-labs/spreadsheet-parser": "1.2.2",
"liuggio/excelbundle": "2.1.0"
},