Bonjour,
Je viens ici, car voilà plusieurs jours que je galère avec la mise à niveau de Symfony 3.4 à Symfony 4
J’ai suivi scrupuleusement la page mise à disposition par Symfony et ai supprimé tous les avertissements de dépréciation, et me voilà maintenant rendu à changer la version de Symfony dans mon fichier symfony.json
que voici (la ligne que j’ai changée est surlignée) :
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 | { "name": "jerome/sitedeuchnord", "license": "proprietary", "type": "project", "autoload": { "psr-4": { "AppBundle\\": "src/AppBundle" }, "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", "doctrine/doctrine-bundle": "^1.6", "doctrine/orm": "^2.5", "erusev/parsedown": "^1.6", "incenteev/composer-parameter-handler": "^2.0", "sensio/distribution-bundle": "^5.0.19", "sensio/framework-extra-bundle": "^3.0.2", "symfony/monolog-bundle": "^3.1.0", "symfony/polyfill-apcu": "^1.0", "symfony/swiftmailer-bundle": "^2.3.10", "symfony/symfony": "^4.0", "twig/extensions": "^1.5", "twig/twig": "^1.0||^2.0" }, "require-dev": { "sensio/generator-bundle": "^3.0", "symfony/phpunit-bridge": "^3.0" }, "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": { "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": null } } |
Mais lorsque j’invoque composer update
, j’obtiens le résultat suivant (j’ai tronqué volontairement les lignes qui se répétaient pour éviter le flood inutile) :
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | 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 - Conclusion: remove sensio/distribution-bundle v5.0.21 - Conclusion: don't install sensio/distribution-bundle v5.0.21 - Conclusion: don't install symfony/symfony v4.0.4 - Conclusion: don't install symfony/symfony v4.0.3 - Conclusion: don't install symfony/symfony v4.0.2 - Installation request for sensio/distribution-bundle (locked at v5.0.21, required as ^5.0.19) -> satisfiable by sensio/distribution-bundle[v5.0.21]. - Conclusion: don't install symfony/symfony v4.0.1 - sensio/distribution-bundle v5.0.21 requires symfony/process ~2.3|~3.0 -> satisfiable by symfony/symfony[v3.4.4], symfony/process[v2.3.0, v2.3.1, ..., v3.4.3, v3.4.4]. - Can only install one of: symfony/symfony[v4.0.0, v3.4.4]. - don't install symfony/process v2.3.0|don't install symfony/symfony v4.0.0 - don't install symfony/process v2.3.1|don't install symfony/symfony v4.0.0 [...] - don't install symfony/process v3.4.2|don't install symfony/symfony v4.0.0 - don't install symfony/process v3.4.3|don't install symfony/symfony v4.0.0 - don't install symfony/process v3.4.4|don't install symfony/symfony v4.0.0 - Installation request for symfony/symfony ^4.0 -> satisfiable by symfony/symfony[v4.0.0, v4.0.1, v4.0.2, v4.0.3, v4.0.4]. |
Le package symfony/process
n’étant pas dans mes dépendances initiales, je ne comprends pas vraiment ce que je dois faire… Une idée ?
Merci d’avance
+0
-0