Я следую инструкциям здесь:
Миграция на symfony 4 с symfony 3.4 и https://symfony.com/doc/current/setup/upgrade_major.html
и я нахожусь в точке, где мне нужно запустить composer update "symfony/*" --with-all-dependencies
Мой composer. json это:
{
"name": "symfony/framework-standard-edition",
"license": "MIT",
"type": "project",
"description": "The \"Symfony Standard Edition\" distribution",
"autoload": {
"psr-4": {
"LO\\CmsBundle\\": "src/LO/CmsBundle"
},
"classmap": [ "app/AppKernel.php", "app/AppCache.php" ]
},
"autoload-dev": {
"psr-4": { "Tests\\": "tests/" },
"files": [ "vendor/symfony/symfony/src/Symfony/Component/VarDumper/Resources/functions/dump.php" ]
},
"require": {
"php": ">=5.5.9",
"cogpowered/finediff": "^0.3.1",
"doctrine/doctrine-bundle": "^1.6",
"doctrine/doctrine-fixtures-bundle": "^2.4",
"doctrine/orm": "^2.5",
"incenteev/composer-parameter-handler": "^2.0",
"sensio/distribution-bundle": "^5.0.19",
"sensio/framework-extra-bundle": "^3.0.2",
"stof/doctrine-extensions-bundle": "^1.2",
"symfony/monolog-bundle": "^3.1.0",
"symfony/polyfill-apcu": "^1.0",
"symfony/swiftmailer-bundle": "^2.3.10",
"symfony/symfony": "^4.0",
"twig/twig": "^1.0||^2.0"
},
"require-dev": {
"sensio/generator-bundle": "^3.0",
"symfony/phpunit-bridge": "^5.1"
},
"scripts": {
"symfony-scripts": [
"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-install-cmd": [
"@symfony-scripts"
],
"post-update-cmd": [
"@symfony-scripts"
]
},
"config": {
"platform": {
"php": "7.2.24"
},
"sort-packages": true
},
"extra": {
"symfony-app-dir": "app",
"symfony-bin-dir": "bin",
"symfony-var-dir": "var",
"symfony-web-dir": "web",
"symfony-tests-dir": "tests",
"symfony-assets-install": "relative",
"incenteev-parameters": {
"file": "app/config/parameters.yml"
},
"branch-alias": {
"dev-master": "3.3-dev"
}
}
}
I У меня есть ошибки при удалении некоторых зависимостей, поэтому я сделал это, но даже после удаления всех я все равно получаю другие ошибки:
- Conclusion: don't install symfony/symfony v4.4.8
- Conclusion: don't install symfony/symfony v4.4.7
- Conclusion: don't install symfony/symfony v4.4.6
...
- don't install symfony/process v3.4.6|don't install symfony/symfony v4.0.0
- don't install symfony/process v3.4.7|don't install symfony/symfony v4.0.0
composer why-not symfony/symfony 4.4.8
дает:
symfony/framework-standard-edition 3.3.x-dev requires symfony/symfony (^3.4)
sensio/distribution-bundle v5.0.25 requires symfony/class-loader (~2.3|~3.0)
sensio/distribution-bundle v5.0.25 requires symfony/config (~2.3|~3.0)
sensio/distribution-bundle v5.0.25 requires symfony/dependency-injection (~2.3|~3.0)
sensio/distribution-bundle v5.0.25 requires symfony/filesystem (~2.3|~3.0)
sensio/distribution-bundle v5.0.25 requires symfony/http-kernel (~2.3|~3.0)
sensio/distribution-bundle v5.0.25 requires symfony/process (~2.3|~3.0)
sensio/framework-extra-bundle v3.0.29 requires symfony/dependency-injection (~2.3|~3.0)
sensio/generator-bundle v3.1.7 requires symfony/console (~2.7|~3.0)
sensio/generator-bundle v3.1.7 requires symfony/framework-bundle (~2.7|~3.0)
sensio/generator-bundle v3.1.7 requires symfony/process (~2.7|~3.0)
sensio/generator-bundle v3.1.7 requires symfony/yaml (~2.7|~3.0)
symfony/swiftmailer-bundle v2.6.7 requires symfony/config (~2.7|~3.0)
symfony/swiftmailer-bundle v2.6.7 requires symfony/dependency-injection (~2.7|~3.0)
symfony/swiftmailer-bundle v2.6.7 requires symfony/http-kernel (~2.7|~3.0)
В настоящее время я запускаю проект fre sh, но если есть какой-либо способ правильно обновить старый, было бы неплохо узнать об этом для справки в будущем.