gpt4 book ai didi

php - 如何从 symfony2.1.7 升级到 symfony2.3,找不到正确的 composer.json 依赖项?

转载 作者:行者123 更新时间:2023-12-02 05:00:48 25 4
gpt4 key购买 nike

我正在尝试从 Symfony2.1.7 升级到 Symfony2.3 稳定版。我正在使用 php composer.phar update但我面临着包依赖问题。下面是我的 composer.json 和命令行输出的链接。

composer.jsoncommand line output

查看输出后我可以看到 friendsofsymfony/user-bundle 依赖

friendsofsymfony/user-bundle 2.0.x-dev requires symfony/security-bundle >=2.1,<2.3-dev

sonata-project/user-bundle 也有类似的东西

- symfony/framework-standard-edition 2.3.x-dev requires sonata-project/user-bundle dev-master -> satisfiable by sonata-project/user-bundle[dev-master].
- sonata-project/user-bundle dev-master requires friendsofsymfony/user-bundle 1.3.* -> satisfiable by friendsofsymfony/user-bundle[1.3.x-dev, v1.3.0, v1.3.1, v1.3.2].
- sonata-project/user-bundle dev-master requires friendsofsymfony/user-bundle 1.3.* -> satisfiable by friendsofsymfony/user-bundle[1.3.x-dev, v1.3.0, v1.3.1, v1.3.2].

看来它需要symfony/security-bundle >=2.1,<2.3-dev但我希望它是 2.3 或更高版本,就像我不能用这些包升级一样。

如果我遗漏了什么,有人可以指导我正确的方向吗?

最佳答案

这是我的完整 composer.json,它适用于 Symfony version 2.3.2-DEV - app/dev/debug

{
"name": "symfony/framework-standard-edition",
"description": "The \"Symfony Standard Edition\" distribution",
"autoload": {
"psr-0": {
"": "src/"
}
},
"require": {
"php": ">=5.3.3",
"symfony/symfony": "2.3.*@dev",
"doctrine/orm": ">=2.2.3,<2.4-dev",

"doctrine/doctrine-bundle": "1.2.*",
"twig/extensions": "dev-master",

"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",

"jms/security-extra-bundle": "1.5.*",
"jms/di-extra-bundle": "1.4.*",

"kriswallsmith/assetic": "1.1.*@dev",

"mlehner/gelf-php": "v1.0",

"doctrine/migrations": "dev-master",
"doctrine/doctrine-migrations-bundle": "dev-master",
"stof/doctrine-extensions-bundle": "1.1.*@dev",
"sensiolabs/doctrine-query-statistics-bundle": "1.0.*@dev",
"jms/serializer-bundle": "0.9.x",

"sonata-project/jquery-bundle": "1.8.*@dev",

"sonata-project/exporter": "1.1.*",

"sonata-project/admin-bundle": "2.2.*@dev",

"sonata-project/cache-bundle": "2.1.*@dev",


"sonata-project/intl-bundle": "2.2.*@dev",

"sonata-project/doctrine-orm-admin-bundle": "2.2.*@dev",

"sonata-project/cache-bundle": "dev-master",
"sonata-project/easy-extends-bundle": "dev-master",

"sonata-project/user-bundle": "2.2.*@dev",
"sonata-project/block-bundle": "dev-master",
"sonata-project/markitup-bundle": "dev-master",
"sonata-project/formatter-bundle": "dev-master",

"sonata-project/doctrine-extensions": "1.0.0",

"friendsofsymfony/user-bundle": "1.3.*@dev",

"knplabs/knp-paginator-bundle": "dev-master",

"liip/monitor": "0.5.*@dev",
"liip/monitor-bundle": "0.5.*@dev",

"mockery/mockery": "0.7.2",

"aws/aws-sdk-php": "2.0.3",

"zendframework/zend-barcode": "2.0.*",
"zendframework/zend-validator": "2.0.*",

"egulias/listeners-debug-command-bundle": "*",

"kylecannon/easycsv": "dev-master",
"predis/predis": "0.8.*@dev"
},
"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"
],
"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"
]
},
"config": {
"bin-dir": "bin"
},
"minimum-stability": "stable",
"extra": {
"symfony-app-dir": "app",
"symfony-web-dir": "web",
"incenteev-parameters": {
"file": "app/config/parameters.yml"
},
"branch-alias": {
"dev-master": "2.2-dev",
"dev-master": "2.3-dev"
}
}
}

关于php - 如何从 symfony2.1.7 升级到 symfony2.3,找不到正确的 composer.json 依赖项?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17117350/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com