我在我的项目中使用了伟大的奏鸣曲管理包。 但是几个月后,我在使用composer进行更新时遇到了依赖关系的问题。我需要更改版本声明,但它一直给我错误。
我查看了奏鸣曲文档,但它对版本没有任何帮助。
所以我在这里问是否有人可以在作曲家文件中给我正确的配置,以使所有奏鸣曲包一起工作。
这是我的composer.json
"php": ">=5.3.3",
"symfony/symfony": "2.3.*",
"doctrine/orm": ">=2.2.3,<2.4-dev",
"doctrine/doctrine-bundle": "1.2.*",
"twig/extensions": "1.0.*",
"symfony/assetic-bundle": "2.3.*",
"symfony/swiftmailer-bundle": "2.3.*",
"symfony/monolog-bundle": "2.3.*",
"sensio/distribution-bundle": "2.3.*",
"sensio/framework-extra-bundle": "2.3.*",
"sensio/generator-bundle": "2.3.*",
"incenteev/composer-parameter-handler": "~2.0",
"friendsofsymfony/user-bundle": "1.3.*",
"sonata-project/admin-bundle": "2.2.*@dev",
"sonata-project/block-bundle": "2.1.*@dev",
"sonata-project/cache-bundle": "dev-master",
"sonata-project/jquery-bundle": "1.8.*@dev",
"sonata-project/easy-extends-bundle" : "dev-master",
"sonata-project/intl-bundle" : "dev-master",
"sonata-project/doctrine-orm-admin-bundle": "dev-master",
"sonata-project/user-bundle": "dev-master",
"sonata-project/media-bundle" : "dev-master",
"genemu/form-bundle": "2.2.*",
"winzou/console-bundle": "1.*",
"knplabs/knp-menu-bundle": "~2.0@dev",
"knplabs/knp-menu": "~2.0@dev"
我的Symfony版本是2.3.8
提前致谢。
答案 0 :(得分:1)
以下是奏鸣曲包和Symfony 2.3.9 的作曲家配置:
{
"sonata-project/admin-bundle": "dev-master",
"sonata-project/core-bundle": "~2.2@dev",
"sonata-project/doctrine-orm-admin-bundle": "dev-master",
"sonata-project/intl-bundle": "dev-master",
"sonata-project/cache-bundle": "dev-master",
"sonata-project/cache": "~1.0@dev",
"sonata-project/block-bundle": "@dev",
"sonata-project/jquery-bundle": "@dev",
"sonata-project/doctrine-extensions": "1.0.0",
"sonata-project/user-bundle": "dev-master",
"sonata-project/easy-extends-bundle": "dev-master",
"sonata-project/exporter": "1.3.*"
}