我创建了一个Symfony应用程序并添加到我的composer.json中:
当我使用
时composer install
一切正常。但是当我想要更新时,我有太多依赖项错误,例如,用户包需要admin-bundle 2.x-dev和分类包需要admin-bundle 3.0.0。我为每个奏鸣曲包尝试了不同的(包括dev-master)。
有人可以帮助我吗?
答案 0 :(得分:1)
我的composer.json:
{
"name": "navalex/.checkout",
"license": "proprietary",
"type": "project",
"minimum-stability": "dev",
"autoload": {
"psr-4": {
"": "src/"
},
"classmap": [
"app/AppKernel.php",
"app/AppCache.php"
]
},
"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",
"ornicar/gravatar-bundle": "^1.1",
"coresphere/console-bundle": "dev-master",
"whiteoctober/breadcrumbs-bundle": "^1.2",
"stof/doctrine-extensions-bundle": "^1.2",
"sonata-project/admin-bundle": "3.0.0",
"sonata-project/block-bundle": "3.0.0",
"sonata-project/doctrine-orm-admin-bundle": "3.0.0",
"sonata-project/easy-extends-bundle": "^2.1",
"sonata-project/formatter-bundle": "^2.3",
"sonata-project/intl-bundle": "^2.2",
"sonata-project/media-bundle": "^2.3",
"sonata-project/classification-bundle": "^2.2",
"sonata-project/user-bundle": "^2.2"
},
"require-dev": {
"sensio/generator-bundle": "~3.0",
"symfony/phpunit-bridge": "~2.7"
},
"scripts": {
"post-install-cmd": [
"Incenteev\\ParameterHandler\\ScriptHandler::buildParameters",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::buildBootstrap",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::clearCache",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installAssets",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installRequirementsFile",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::prepareDeploymentTarget"
],
"post-update-cmd": [
"Incenteev\\ParameterHandler\\ScriptHandler::buildParameters",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::buildBootstrap",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::clearCache",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installAssets",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installRequirementsFile",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::prepareDeploymentTarget"
]
},
"config": {
"bin-dir": "bin",
"platform": {
"php": "5.5"
}
},
"extra": {
"symfony-app-dir": "app",
"symfony-web-dir": "web",
"symfony-assets-install": "relative",
"incenteev-parameters": {
"file": "app/config/parameters.yml"
}
}
}
答案 1 :(得分:0)
您可以粘贴您需要的版本吗?
如果您需要更多的许可版本,问题可能会解决。例如,如果您要求所有人都Game$1.class
,那么如果图书馆的标记政策设计不当,您可能会遇到错误。但是,如果您使用.jar
,那么composer可能会找到一个适合所有交叉要求的版本。