我创建了一个Symfony应用程序,并在我的composer.json:中添加了
- sonata项目/管理捆绑包
- sonata项目/格式化程序包
- sonata项目/intl捆绑包
- sonata项目/媒体捆绑包
- sonata项目/分类捆绑包
- sonata项目/用户捆绑包
当我使用时
composer安装
一切都很好。但当我想更新时,我有太多的依赖性错误,例如,用户捆绑包需要管理捆绑包2.x-dev,分类捆绑包需要管理员捆绑包3.0.0。我为每个奏鸣曲捆绑包尝试了不同的(包括dev-master)。
有人能帮我吗?
My 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"
}
}
}
你能粘贴你需要的版本吗?
如果您需要更宽松的版本,这个问题可能会得到解决。例如,如果您要求它们全部为v3.0.0
,那么如果库的标记策略设计不好,则可能会出现错误。然而,如果您使用*
,composer可能会找到一个适合所有交叉需求的版本。