Estoy intentando actualizar symfony de la version 2.3 a una más avanzada, mi intención era sobre una 3.0 pero no hay manera.
Leyendo en los foros he actualizado el composer.json a una "minimum-stability": "dev" pero aún así, siempre me da algún error de dependencia. También decir que no se para que sirven muchas de ellas, que yo sepa solo uso php, symfony y doctrine Dejo aquí mi composer.json
"require": {
"php": ">=5.3.3",
"symfony/symfony": ">3.0",
"doctrine/orm": ">=2.2.3",
"doctrine/doctrine-bundle": ">1.6",
"twig/extensions": ">1.0",
"symfony/assetic-bundle": ">2.8",
"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"
},
"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": "dev",
"extra": {
"symfony-app-dir": "app",
"symfony-web-dir": "web",
"incenteev-parameters": {
"file": "app/config/parameters.yml"
},
"branch-alias": {
"dev-master": "2.3-dev"
}
}
}
Error de dependencia
root@symfony2:/var/www/html/Symfony# composer update symfony/symfony Loading composer repositories with package information Updating dependencies (including require-dev) Your requirements could not be resolved to an installable set of packages. Problem 1 - The requested package doctrine/doctrine-bundle (locked at v1.2.0, required as >1.6) is satisfiable by doctrine/doctrine-bundle[v1.2.0] but these conflict with your requirements or minimum-stability. Problem 2 - The requested package twig/extensions (locked at v1.0.0, required as >1.0) is satisfiable by twig/extensions[v1.0.0] but these conflict with your requirements or minimum-stability. Problem 3 - The requested package symfony/assetic-bundle (locked at v2.3.0, required as >2.8) is satisfiable by symfony/assetic-bundle[v2.3.0] but these conflict with your requirements or minimum-stability. Problem 4 - The requested package symfony/monolog-bundle (locked at v2.3.0, required as >2.3) is satisfiable by symfony/monolog-bundle[v2.3.0] but these conflict with your requirements or minimum-stability. Problem 5 - The requested package incenteev/composer-parameter-handler (locked at v2.0.0, required as >2.0) is satisfiable by incenteev/composer-parameter-handler[v2.0.0] but these conflict with your requirements or minimum-stability. Problem 6 - symfony/symfony dev-master requires php ^7.1.3 -> your PHP version (5.5.9) does not satisfy that requirement. - symfony/symfony 4.0.x-dev requires php ^7.1.3 -> your PHP version (5.5.9) does not satisfy that requirement. - Conclusion: don't install symfony/symfony 3.4.x-dev - Conclusion: don't install symfony/symfony 3.3.x-dev
No tengo mucha experiencia, solo se me ha ocurrido que puedo instalar en una virtual los mismos paquetes para luego llevarme el composer.json y que lo tome de referencia, así supuestamente no tendrá incompatibilidades.
cualquier ayuda será bienvenida
Si pongo master me sale esto:
Problem 1 - The requested package doctrine/doctrine-bundle (locked at v1.2.0, required as >1.6) is satisfiable by doctrine/doctrine-bundle[v1.2.0] but these conflict with your requirements or minimum-stability. Problem 2 - The requested package twig/extensions (locked at v1.0.0, required as >1.0) is satisfiable by twig/extensions[v1.0.0] but these conflict with your requirements or minimum-stability. Problem 3 - The requested package symfony/assetic-bundle (locked at v2.3.0, required as >2.8) is satisfiable by symfony/assetic-bundle[v2.3.0] but these conflict with your requirements or minimum-stability. Problem 4 - The requested package symfony/monolog-bundle (locked at v2.3.0, required as >2.3) is satisfiable by symfony/monolog-bundle[v2.3.0] but these conflict with your requirements or minimum-stability. Problem 5 - The requested package incenteev/composer-parameter-handler (locked at v2.0.0, required as >2.0) is satisfiable by incenteev/composer-parameter-handler[v2.0.0] but these conflict with your requirements or minimum-stability. Problem 6 - Installation request for symfony/symfony master -> satisfiable by symfony/symfony[dev-master]. - symfony/symfony dev-master requires php ^7.1.3 -> your PHP version (5.5.9) does not satisfy that requirement.