奏鸣曲包的作曲家原型
Posted
技术标签:
【中文标题】奏鸣曲包的作曲家原型【英文标题】:Composer Prototype of sonata bundles 【发布时间】:2017-04-14 13:00:07 【问题描述】:我有一个项目,该项目在特定的捆绑包提交或 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" ,
有什么帮助吗? 对不起英语!
【问题讨论】:
【参考方案1】:-
从 composer.json 中删除所有奏鸣曲行
让 Composer 自己找出工作组合:
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
。它不是为此而设计的,它是为您开发奏鸣曲本身而设计的。
【讨论】:
【参考方案2】:经过研究,我发现了捆绑版本的稳定组合: 这是我的 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"
,
【讨论】:
以上是关于奏鸣曲包的作曲家原型的主要内容,如果未能解决你的问题,请参考以下文章
依赖问题作曲家[奏鸣曲管理员; SonataDoctrineORMAdminBundle]